Better files management
Better files management

At the begining, resu_dir is either created or recreated depending whether it exi
So during the program execution :
 - write mode opening is for files accessed once
 - and append mode opening othewise

chagaz/sfan,chagaz/sfan,chagaz/sfan,chagaz/sfan,chagaz/sfan