Computers use "files" to manage programs and data. A computer file is a data stream stored on some kind of long-term storage device. It is often stored as multiple data fragments in different locations on the disk; the operating system organizes them into a file system, and each file is placed in a specific folder or directory. middle.
A computer file (or file, computer file, file) is a data stream stored on some kind of long-term storage device. The so-called "long-term storage devices" generally refer to disks, optical disks, tapes, etc. Its characteristic is that the stored information can be used for a long time and multiple times and will not disappear due to power outage.
Computer files are a collection of information stored on a computer using the computer hard disk as a carrier. Files can be text documents, pictures, programs, etc. Files typically have a dot three-letter file extension that indicates the file type (for example, image files are often saved in JPEG format and have a .jpg file extension).
Storage method
Although a file appears as a single stream, it is often stored as multiple data fragments in different locations on the disk (or even multiple disks ). The operating system organizes them into a file system, with each file placed in a specific folder or directory.
Files are created by software and conform to a specific file format.
The above is the detailed content of How do computers manage programs and data?. For more information, please follow other related articles on the PHP Chinese website!