Lecture overview -- Keyboard shortcut: 'u'  Previous page: The class TextReader -- Keyboard shortcut: 'p'  Next page: Members in class StreamReader -- Keyboard shortcut: 'n'  Lecture notes - all slides together  Annotated slide -- Keyboard shortcut: 't'  Textbook -- Keyboard shortcut: 'v'  Alphabetic index  Help page about these notes  Course home    Input and Output Classes - slide 16 : 40

StreamReader Examples
The examples illustrate encodings and reading values of simple types
read-prog.cs
Reading back the text strings encoded in three different ways, with StreamReader.
output
Output from the program that reads back the strings encoded in three different ways.
read-prog.cs
A program that reads line of text and parses them to values of simple types.
read-prog-output
Output from the readline and parsing program.

Use a TextReader subclass, rather than a Stream subclass, to read text files