classify files and define each file type??
Answers
Answer:
A collection of data or information that has a name, called the filename. Almost all information stored in a computer must be in a file. There are many different types of files: data files, text files , program files, directory files, and so on. ... For example, program files store programs, whereas text files store text
Answer:
Types of Files
There are three basic types of files:
regular Stores data (text, binary, and executable).
directory Contains information used to access other files.
special Defines a FIFO (first-in, first-out) pipe file or a physical device.
All file types recognized by the system fall into one of these categories. However, the operating system uses many variations of these basic types.
Regular Files
Regular files are the most common files. Another name for regular files is ordinary files. Regular files contain data.
Text Files
Text files are regular files that contain information readable by the user. This information is stored in ASCII. You can display and print these files. The lines of a text file must not contain NUL characters, and none can exceed {LINE_MAX} bytes in length, including the new-line character.
The term text file does not prevent the inclusion of control or other nonprintable characters (other than NUL). Therefore, standard utilities that list text files as inputs or outputs are either able to process the special characters gracefully or they explicitly describe their limitations within their individual sections.
Binary Files
Binary files are regular files that contain information readable by the computer. Binary files may be executable files that instruct the system to accomplish a job. Commands and programs are stored in executable, binary files. Special compiling programs translate ASCII text into binary code.
The only difference between text and binary files is that text files have lines of less than {LINE_MAX} bytes, with no NUL characters, each terminated by a new-line character.