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

  • Two public constructors

    • BinaryReader(Stream)

    • BinaryReader(Stream, Encoding)

  • 15 individually name Readtype operations

    • ReadBoolean, ReadChar, ReadByte, ReadDouble, ReadDecimal, ReadInt16, ...

  • Three overloaded Read operations

    • Read() and Read (char[] buffer, int index, int count)
      read characters - using Encoding

    • Read (bytes[] buffer, int index, int count) reads bytes