Hi,
Is there a way to output data to a file without erasing its contents?
Thanks
Neil
Printable View
Hi,
Is there a way to output data to a file without erasing its contents?
Thanks
Neil
Yes, by appending to the file.
I'll add some details on how to open the file to append the data to it:
Code:FILE *f = fopen("your_file", "a");