Lecture overview -- Keyboard shortcut: 'u'  Previous page: The abstract class Stream in C#  -- Keyboard shortcut: 'p'  Next page: Subclasses of class Stream -- 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 4 : 40
Object-oriented Programming in C#
Input and Output Classes
The most important members in class Stream

  • int Read (byte[] buf, int pos, int len)

  • int ReadByte()

  • void Write (byte[] buf, int pos, int len)

  • void WriteByte(byte b)

  • bool CanRead

  • bool CanWrite

  • bool CanSeek

  • long Length

  • void Seek (long offset, SeekOrigin org)

  • void Flush ()

  • void Close()


The static field Null represents a stream without a backing store.