here that EOF is also present in the file.
5.3 STRING I/O FUNCTIONS
It is also possible to read or write data more easily in the form of strings.
Writing to a File
We can write data into a file in the form of strings. We use the fputs( ) function for this.
Syntax
fputs (s, fp);
where s is a string constant or variable and fp is a file pointer. This function is used to put or write
data into a file as compared to the puts( ) function, which is used to write data onto the screen.
Do'stlaringiz bilan baham: