TextReader: ReadLine

ReadLine

Reads a line of characters from the current stream and returns the data as a string.



 Public Function ReadLine ( ) As String

Return Values

String -  The next line from the input stream, or vbNullString if all characters have been read.

Remarks

A line is defined as a sequence of characters followed by a carriage return (0x000d), a line feed (0x000a), a carriage return followed by a line feed, Environment.NewLine, or the end of stream marker. The string that is returned does not contain the terminating carriage return and/or line feed. The returned value is vbNullString if the end of the input stream has been reached.

Exceptions

ExceptionCondition
ObjectDisposedExceptionThe TextReader is closed.

See Also

Project CorLib Overview

Class TextReader Overview