So, when adding lines to text files I always see
fid = fopen(fileName,'w');fprintf(fid,'%s\n','content');fclose(fid);
Can this be done without fprintf, to avoid spending system resources displaying text command window? Or is it somehow necessary to see the text in the command window when writing to a file?
Best Answer