Files are used for all input and output (I/O) of information in the operating system. This standardizes access to both software and hardware. Input occurs when the contents of a file is modified or written to. Output occurs when the contents of one file is read or transferred to another file. For example, to create a hardcopy printout of a file, the system reads the information from the text file and writes that information to the file representing the printer.