Input and Output Classes
- slide 16 : 40
StreamReader Examples
The examples illustrate encodings and reading values of simple types
The similar writing program
Reading back the text strings encoded in three different ways, with StreamReader.
Output from the program that reads back the strings encoded in three different ways.
The similar writing program
A program that reads line of text and parses them to values of simple types.
Output from the readline and parsing program.
Use a
TextReader
subclass, rather than a
Stream
subclass, to read text files