March 2004
Intermediate to advanced
560 pages
26h 47m
English
The System.IO.StreamReader class is designed for character input in a particular System.Text.Encoding, whereas subclasses of System.IO.Stream are designed for byte input and output.
[Note: System.IO.StreamReader defaults to UTF-8 encoding unless specified otherwise, instead of defaulting to the ANSI code page for the current system. UTF-8 handles Unicode characters correctly and provides consistent results on localized versions of the operating system. When reading from a System.IO.Stream, it is more efficient to use a buffer that is the same size as the internal buffer of the stream. By default, a System.IO.StreamReader is not thread safe. For a thread-safe wrapper, see System.IO.TextReader.Synchronized.]
Read now
Unlock full access