Skip to main content

File I/O (How to write in file)

I am going to share an example of how to write in file:



fopen() call used to open a file and  const char* filename and const char* mode which is used to open file in write mode. fprintf() used to write data through getting a file pointer. fclose() call will close the file pointer.


Comments