Types of Files in OS
Types of Files in the operating system Introduction: We know that different files store different information. A file may be an executable file, object file, program file, word processing documents, image file, and so on. The execution of different file types is different. For example: The execution for an executable file is ''exe" or "com",for text file is 'txt', for document file is 'doc' and so on. Explanation: The type of file can also be recognized by magic numbers. Each file stored on the disk is divided into different sections. The first section is headed. It contains information about the file. The start of the header is called the magic number, which indicates the type of files (such as an executable file). For example, the string "GIF8" at the beginning of the file identifies that the file contains the image data and the file extension is GIF. The operating systems rarely use the magic number to recognize the file type. H...