Using the StreamReader and StreamWriter Classes
The StreamReader and StreamWriter classes derive from the TextReader and TextWriter abstract classes. These classes perform input and output of characters with a stream using a particular encoding to translate the characters into bytes and bytes into characters so that the underlying stream can be read from or written to. These classes offer a simpler, higher level interface than the underlying Stream object, and they can read or write strings.
Creating StreamReader and StreamWriter Objects
The constructors for the StreamReader and StreamWriter classes allow you to create your own Stream object and create a StreamReader or StreamWriter class by passing the stream as a parameter. Both classes also allow ...
Get Microsoft® .NET Compact Framework (Core Reference) 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.