Well, A file is a collection of bytes stored on a secondary storage device, which is about a basic of some kind. The accumulating of bytes may be interpreted. There are two kinds of files that programmers deal with text files and binary files.