. Net stream understanding (original)

Source: Internet
Author: User

. NET provides excellent support for streaming. for various types of streams, commonly used reader and writer, I may feel confused for beginners. I am also one of them. After reading msdn and exercises, the following is an example.

In general, the stream-based read/write direction is divided into external sources andProgram, Memory and file strings are both external sources, and all bytes of content are programs. This is not hard to understand. The basic unit of C # processing is byte. Reading from the inside to the outside is called writing from the outside to the inside. The basic stream, buffer, network stream, file stream, and memory stream are both byte streams. The characters are for the convenience of reading, binary is for the convenience of storage, text is a further generalization of the string, these are external sources for the program. As shown in the figure below, do not laugh. Please point out the mistake.

 

 

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.