. 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.