Alright, is there a way I can write to a text file, so it is actually on a newline when I open it in textpad? instead of just have the newline character appended to the first line? Because I need to...
Type: Posts; User: automagician
Alright, is there a way I can write to a text file, so it is actually on a newline when I open it in textpad? instead of just have the newline character appended to the first line? Because I need to...
Actually it could be because I am looking at the file in notepad, because when I open it in word, it opens on different lines
fp = fopen(DATAFILE, "a+");
fprintf(fp, "\n");
fprintf(fp, "Emp# ");
fprintf(fp, "%d", emp.eNum);
fprintf(fp, " ");
fprintf(fp, "| Name: ");
fprintf(fp, emp.fName);
fprintf(fp, " ");...
See that is what I thought too, but that doesn't work, it still just appends to the same line in the file.
If I am writing data to a .txt file, how can I get it to append to a newline instead of append to the first line?
Thanks in advance!