Friday, March 11, 2005

 

TextReader & TextWriter

To create a character stream, wrap a byte stream inside one of C#’s character stream wrappers. Character stream have TextReader and TextWriter as the abstract base class.

TextReader
Some of the methods of interest are:

Close()

int Peek()

int Read()

string ReadLine()

string ReadToEnd()

TextWriter
This class defines the versions of Write() and WriteLine()
Comments: Post a Comment

<< Home

This page is powered by Blogger. Isn't yours?