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

  • Two public constructors

    • BinaryWriter(Stream)

    • BinaryWriter(Stream, Encoding)

  • 18 overloaded Write operations

    • One for each simple type

    • Write(char), Write(char[]), and Write(char[], int, int) - use Encoding

    • Write(string) - use Encoding

    • Write(byte[]) and Write(byte[], int, int)

  • Seek(int offset, SeekOrigin origin)

  • others