A file is a one-dimensional stream of bits treated as a logical unit. They are the most basic component that a file system uses to organize raw bits of data on the storage device itself. The filename is made up of the directory path plus the file name. An extension can also be added to the filename to identify the file type and the program used to create, view, and modify the file.