To read the file’s contents from memory there exists a function called fgetc( )
e.g
ch = fgetc(fp);
Writing to a File(Unformatted Character)
There exists a fputc( ) function that writes to the file
fputc(ch, ft);
here value of ch variable will be written to file whose file pointer is ft.
e.g
ch = fgetc(fp);
Writing to a File(Unformatted Character)
There exists a fputc( ) function that writes to the file
fputc(ch, ft);
here value of ch variable will be written to file whose file pointer is ft.