Simply awesomeThe #1 ASP/ASP.NET Developer Community

TextReader Class

System.IO Namespace


Represents a reader that can read a sequential series of characters.

TextReader Class Members

Collapse   Fields

Visibility Name Type
public static Null TextReader

Collapse   Methods

Visibility Name Parameters Return Type
public Close ( ) Void
protected Dispose ( Boolean disposing ) Void
public Dispose ( ) Void
public Peek ( ) Int32
public Read ( Char buffer , Int32 index , Int32 count ) Int32
public Read ( ) Int32
public ReadBlock ( Char buffer , Int32 index , Int32 count ) Int32
public ReadLine ( ) String
public ReadToEnd ( ) String
public static Synchronized ( TextReader reader ) TextReader

Remarks

TextReader is designed for character input, whereas the Stream class is designed for byte input and output and the BinaryReader class is designed for reading primitive types in binary rather than text.

By default, a TextReader is not thread safe. See TextReader.Synchronized for a thread-safe wrapper.

A derived class must minimally implement the Peek and Read methods in order to make a useful instance of TextReader.

See Also


Previous page Back to top Next page

Check out related books at Amazon

© 2000-2008 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support aspxtreme