Files
Definition:
File is a predefined structure data type which is defined in library file called stdio.h. (or) A File is a set of records that can be accessed through a set of library functions.
Syntax:
FILE *filepointerobject;
Example:
FILE *fp; // where FILE is a keyword and “fp” is a file pointer object.
C supports a number of functions that can perform basic file operations, including:
- Naming a file
- Opening a file
- Reading from a file
- Writing data into a file
- Closing a file
File operation functions in C:

