Files and Streams

Source: Internet
Author: User

Files (file) and stream (stream) are both distinct and connected. A file is an ordered collection of data that is permanently stored on various media (removable disks, hard disks, CDs, and so on). It is a basic object for data read and write operations. Typically, files are organized in a tree directory, each with a file name, path to the file, creation time, access rights, and so on.

Conceptually, a stream is very similar to a separate disk file, and it is also a basic object for data-reading operations. Stream provides us with continuous byte-throttling storage space. Although the actual location of the data storage can be discontinuous, or even distributed on multiple disks, but we see the encapsulation of the data structure, is a continuous flow of the abstract structure of the byte stream. This and a file can also be distributed across multiple sectors on the disk.

In addition to file streams that are directly related to disk files, there are several types of streams, which can be distributed across the network, in memory, or in tape.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.