I have a file in the c language that contains the text i want to add another text to this file without deleting the last text only to add new text at the end of the file
Asked
Active
Viewed 541 times
1 Answers
0
Just open the file in a
append mode because standard says
Opening a file with append mode ('a' as the first character in the mode argument) causes all subsequent writes to the file to be forced to the then current end-of-file, regardless of intervening calls to the fseek function.

Gopi
- 19,784
- 4
- 24
- 36