fid = fopen('test.txt', 'w'); fprintf(fid, 'Décompte\n'); f_error = fclose(fid);