Lecture overview -- Keyboard shortcut: 'u'  Previous page: The class TextWriter -- Keyboard shortcut: 'p'  Next page: Members in class StreamWriter -- 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 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.
Writing values of simple types and objects of our own classes.
The file simple-types.txt.
The file non-simple-types.txt.
Go to exercise
Die tossing - writing to text file

Use a TextWriter subclass, rather than a Stream subclass, to write text files