Many different types of information may be stored in a file; source programs, object programs, executable programs, numeric data, text, payroll records, graphic images, sound recordings, and so on.
A file has a certain defined structure, which depends on its type.
File Structure
:check: A text file is a sequence of characters organized into lines (and possibly pages).
:check: A source file is a sequence of subroutines and functions, each of which is further organized as declarations followed by executable statements.
:check: An object file is a sequence of bytes organized into blocks understandable by the system's linker.
:check: An executable file is a series of code sections that the loader can bring into memory and execute.