Home > Article > Backend Development > .net stream - a brief introduction to the stream type system
##Basic flow | Decorator flow | Wrapper class | Help class | |||||||||||||||
Inherits from basic streamstream |
Function added on the basicStream | ##Data transmissionOperations on file streams become simpler |
## Stream | The corresponding backing storage is file | Memory | Network resource | |||||||||||||||
FileStream | MemoryStream | NetWorkStream | ||||||||||||||||
IsolatedStorgaeFileStream:
Inherits from FileStream |
##BufferdStream |
DeflateStream | GZipStream
|
CryptoStream | AuthenticatedStream | ||||||||||||||
System.io | System.IO.Compression | System.IO.Compression | System .Security.Cryptography | ##System.net.security|||||||||||||||
Compression | Decompression | Encryption and Decryption | Security |
##TextWriter
TextReader(defined set of Universal way to read and write character data) |
|||
StreamReader
StreamWriter: ##1, inherited from TextWriter TextReader defines a set of common methods for reading and writing character data 2, suitable for reading and writing text characters
|
BinaryReader : used to read binary data into the stream Way to write primitive types BinaryWriter: Used to read primitive types from streams |
||
St ringReaderStringWriter: 1, also inherited from TextWriter TextReader, used to process strings
|
##File | FileInfo | Path | ##Directory /DirecoryInfo |
Open; openRead; openWrite; Copy; | Processing path |
##
#region 工具类示例 // File.WriteAllText("FileTest.txt", "hello,i'm using file ", Encoding.UTF8); #endregion
The above is a brief introduction to .net flow - the flow type system. For more related content, please pay attention to the PHP Chinese website (www.php .cn)!