A file is a place on the disk where group of related data are stored.The data file always allows us to store information permanently and to access and alter the information whenever necessary.Or file can also be said as a system of bytes or characters stored contiguously in memory. Types of file: a)Text File b)Binary File Difference between text and binary file Text File Binary File 1.It consists of text in contrast to 1.It consists of information in ASCII form. binary form i.e. 0’s and 1’s.