(3) When a new document is created, irrespective of program, it is first of all saved as a file. There are many different types of files: data files, text files, program files, directory files, etc. Each file is differentiated from the other by the filename and the extension at the end of its name.