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

StringReader and StringWriter allow strings to be read and written like streams

A StringWriter is constructed on a StringBuilder object

A StringReader is constructed on a string object

InputOutput
TextTextReader
    StreamReader
    StringReader
TextWriter
    StreamWriter
    StringWriter
BinaryBinaryReaderBinaryWriter

An overview of Reader and Writer classes with special emphasis on StringReader and StringWriter.

/user/normark/oop-csharp-1/sources/c-sharp/io/text-writer-reader/read-write-string/write-prog.csA StringWriter program similar to the StreamReader program shown earlier.


/user/normark/oop-csharp-1/sources/c-sharp/io/text-writer-reader/read-write-string/write-outputOutput of the StringWriter program.


/user/normark/oop-csharp-1/sources/c-sharp/io/text-writer-reader/read-write-string/read-prog.csA StringReader program.


/user/normark/oop-csharp-1/sources/c-sharp/io/text-writer-reader/read-write-string/read-outputOutput of the StringReader program.