complete-reference-vb_net_65
complete-reference-vb_net_65
Member Purpose
Null (p) A StreamReader around an empty stream
BaseStream (p) Returns the underlying stream
CurrentEncoding (p) Retrieves the current character encoding that the current StreamReader
is using
Close Closes the StreamReader and releases any system resources associated
with the reader
CreateObjRef Creates an object that contains all the relevant information required to
generate a proxy used to communicate with a remote object
DiscardBufferedData Allows a StreamReader to discard its current data
Peek Returns the next available character but does not consume it
Read Reads the next character or next set of characters from the input stream
ReadBlock Reads a maximum of counted characters from the current stream and
writes the data to a buffer, beginning at a specified index
ReadLine Reads a line of characters from the current stream and returns the data
as a string
ReadToEnd Reads the stream from the current position to the end of the stream
When you read data from the StreamReader for the first time, you can change the encoding by changing the
encoding flag.
The DetectEndcodingFromByteOrderMarks detects the encoding from the first three bytes of the stream.
The big−endian, little−endian, and UTF−8 Unicode text is automatically recognized. If the encoding cannot
be determined, the user−defined encoding is implemented.
Member Purpose
Null (Nothing) (p) Provides a StreamWriter with a backing store that can be written to, but
not read from
AutoFlush (p) Retrieves or changes a value indicating whether the StreamWriter will
flush its buffer to the underlying stream after every call to Console.Write
or Console.WriteLine
BaseStream (p) Retrieves the underlying stream that interfaces with a backing store
Encoding (p) Retrieves the encoding in which the output is written
FormatProvider (p) Retrieves an object that controls formatting
NewLine (p) Retrieves or changes the line terminator string used by the current
TextWriter
549