 In early computer systems – particularly DOS, its variants, and some versions of Windows – file associations are maintained by file extensions.The three to four character code following a file name instructs the system to open the file in particular applications.Beginning with System 1, Macintosh operating systems have attached type codes and creator codes as part of the file metadata.