What is a File?
A file is some information or data which stays in the computer storage devices. A unique name and path is used by users or in programs or scripts to access a file for reading and modification purposes.
ex music files, video files, text files.
A file is a piece of logically related data or information which can be used by computer programs.
Files can be divided into two categories,
- ASCII file
- ASCII files are simple texts which are readable.
- Binary file
- Binary files contain binary data which is only readable by computer
File Operations
- create a file
- reading a file
- writing to a file
- save a file
- open a file
- renaming a file