Lecture overview -- Keyboard shortcut: 'u'  Previous page: Sample use of class Encoding  -- Keyboard shortcut: 'p'  Next page: StreamWriter Examples -- Keyboard shortcut: 'n'  Lecture notes - all slides and notes together  slide -- Keyboard shortcut: 't'  Textbook -- Keyboard shortcut: 'v'  Help page about these notes  Alphabetic index  Course home  Page 12 : 40
Object-oriented Programming in C#
Input and Output Classes
The class TextWriter

Class TextWriter supports writing of characters and strings via a chosen encoding

It is also possible to write textual representations of simple types with use of TextWriter

  • Subclasses of the abstract TextWriter class

    • StreamWriter: For character output in a particular character encoding

    • StringWriter: For stream access to a string - (discussed later in the lecture)