Hi, I have a question that may be dealing with efficiency in programming:
What is the conceptual difference between writing to files in the two steps:
and using directly fprintf in the following way:
fp = fopen(full_filename, "w+");
sprintf(str, "%d ", Variable);
Is the first better for memory saving in some way? I usually use the second option, but starting wondering when I saw other people using option 1.
fprintf(fp ," %d", Variable);
Thank you in advance