ReadLine Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

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

Namespace:  System.IO
Assembly:  System.IO (in System.IO.dll)

public override string ReadLine()

Return Value

Type: System..::..String
The next line from the input stream, or nullNothingnullptrunita null reference (Nothing in Visual Basic) if the end of the input stream is reached.

A line is defined as a sequence of characters followed by a line feed ("\n"), a carriage return ("\r"), or a carriage return immediately followed by a line feed ("\r\n"). The string that is returned does not contain the terminating carriage return or line feed. The returned value is nullNothingnullptrunita null reference (Nothing in Visual Basic) if the end of the input stream is reached.

Show: