There are two distinct ways to perform the file operation in C:
1. Low level I/O operation (it uses UNIX system call
therefore we won't discuss here)
2. High level I/O operation (it uses function in C's Standard I/O library)
List of I/O function with their operation:
fopen() creates a new file for use or opens an existing file for use.
fclose() close a file which has been opened for use.
getc() reads a character to a file.
putc() writes a character to a line.
fprintf() writes a set of data values to a file.
fscanf() reads a set of data values from a file.
getw() reads an integer from a file.
putw() writes an integer to a file.
feof() test for an end of file condition.
0 comments:
Post a Comment