A file is a collection of related data stored on a secondary storage device, such as a hard disk, CD, DVD, pen drive, etc. A file has a name and an extension that indicates its type. For example, “Book.txt” is a file name with “.txt” as the extension that indicates it is a text file. Files are used to store data permanently and to transfer data between different programs or devices.

Go Ad-free
Davneet Singh's photo - Co-founder, Teachoo

Made by

Davneet Singh

Davneet Singh has done his B.Tech from Indian Institute of Technology, Kanpur. He has been teaching from the past 14 years. He provides courses for Maths, Science, Social Science, Physics, Chemistry, Computer Science at Teachoo.