whats the syntax to append data of one file to another file.
whats the syntax to append data of one file to another file.
Use fopen() to open the files. Open the source-file for reading only and open the destination-file for appending. Then use for example fwrite() or some other file-writing function to write the data from the source-file to the destination-file. You could use fread() for reading. And finally close the files using fclose().
Take a look here for more detailed info:
http://www.acm.uiuc.edu/webmonkeys/book/c_guide/