Click or drag to resize
StreamReader Class
Represents a reader that can read a sequential series of characters.
Inheritance Hierarchy

Namespace: CMS.IO
Assembly: CMS.IO (in CMS.IO.dll) Version: 12.0.0
Syntax
C#
public class StreamReader : TextReader

The StreamReader type exposes the following members.

Constructors
  NameDescription
Protected methodStreamReader
Creates new instance of stream reader.
Top
Properties
  NameDescription
Public propertyEndOfStream
Gets a value that indicates whether the current stream position is at the end of the stream.
Top
Methods
  NameDescription
Protected methodDispose
Releases all resources.
(Overrides TextReaderDispose(Boolean).)
Public methodStatic memberNew(Stream)
Returns new instance of stream reader class.
Public methodStatic memberNew(StreamReader)
Returns new instance of stream reader class.
Public methodStatic memberNew(String)
Returns new instance of stream reader class.
Public methodStatic memberNew(Stream, Encoding)
Returns new instance of stream reader class.
Public methodPeek
Returns the next available character but does not consume it.
(Overrides TextReaderPeek.)
Public methodRead
Reads the next character from the input stream and advances the character position by one character.
(Overrides TextReaderRead.)
Public methodReadLine
Reads a line from the underlying string.
(Overrides TextReaderReadLine.)
Public methodReadToEnd
Reads the stream from the current position to the end of the stream.
(Overrides TextReaderReadToEnd.)
Top
See Also