Append to the end of a file in C

The Solution to Append to the end of a file in C is


Open with append:

pFile2 = fopen("myfile2.txt", "a");

then just write to pFile2, no need to fseek().

~ Answered on 2013-10-17 14:16:20


Most Viewed Questions: