Input and Output Classes
- slide 13 : 40
StreamWriter Examples
The examples illustrate character encoding, and writing values of simple types
Writing a text string using three different encodings with StreamWriters.
The similar reading program
Writing values of simple types and objects of our own classes.
The file simple-types.txt.
The file non-simple-types.txt.
Die tossing - writing to text file
Use a
TextWriter
subclass, rather than a
Stream
subclass, to write text files