File: 

File is a collection of records which are logically related to any object. Record value can be in any form like data. 

For eg. : Each student records having values of Roll no, Name, Class. For arranging data we use files. 

Types of files:

Physical file: 

  • Physical file concern with actual data that is stored. 
  • It stores description about how the data is to be represented.

Logical file

  • Logical file: do not contain data. 
  • They contain a description of records that are found in one or more physical files. 
  • A logical file is a view or representation of one or more physical files.

Special character file: 

  • At the time of file creation we insert some special characters in the file. 
  • For eg: Control + z for end of a file which having ASCII value 26