Working with Input/Output Streams
The System.IO namespace provides classes for reading and writing data into and from streams, including files, network streams, and so on. The Stream class provides an abstract representation of sequence of bytes. Typically you would work with a reader/writer pair of classes, which provide methods to read and write primitive typed and/or string to/from the stream. For example, the BinaryReader/BinaryWriter and StreamReader/StreamWriter classes provide reading/writing binary data and text, respectively. Additionally, StringReader/StringWriter classes provide reading/writing from a string, typically useful for manipulating in memory data. Apart from that, the System.IO namespace provides Directory, DirectoryInfo, ...
Get Microsoft® .NET Kick Start now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.