Files are self-contained objects on a computer that store information. There are a number of different file types that serve a variety of purposes. Some store information pertaining to the operating system and user settings, while others contain programs, written documents, graphics, or sound.