File handling in C
File Handling is the is the storing of data in a file using a program. In file handling, some function are used to handle the file.
Functions of File Handling
- fopen()
It is used to opens new or already created file.
- fclose()
It is used to closes the file.
- fprintf()
It is used to write data into the file.
- fputc()
It is uesd to writes a character into the file.
- fputw()
It is uesd to writes an integer to file.
- fscanf()
It is used to reads data from the file.
- fgetc()
It is used to reads a character from file.
- fgetw()
It is used to reads an integer from file.
- fseek()
It is used to sets the file pointer to given position.
- ftell()
This function is used to returns current position.
- rewind()
It is used to sets the file pointer to the beginning of the file.