Lecture overview -- Keyboard shortcut: 'u'  Previous page: StreamWriter Examples -- Keyboard shortcut: 'p'  Next page: The class TextReader -- 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 14 : 40
Object-oriented Programming in C#
Input and Output Classes
Members in class StreamWriter

  • 7 overloaded constructors

    • Parameters involved: File name, stream, encoding, buffer size

    • StreamWriter(String)

    • StreamWriter(Stream)

    • StreamWriter(Stream, Encoding)

    • others

  • 17/18 overloaded Write / WriteLine operations

    • Chars, strings, simple types. Formatted output

  • Encoding

    • A property that gets the encoding used for this TextWriter

  • NewLine

    • A property that gets/sets the applied newline string of this TextWriter

  • others