Reads a line.
[Visual Basic] Overrides Public Function ReadLine() As String [C#] public override string ReadLine(); [C++] public: override String* ReadLine(); [JScript] public override function ReadLine() : String;
The next line from the underlying string, or a null reference (in Visual Basic Nothing) if the end of the underlying string is reached.
Exception Type | Condition |
---|---|
IOException | An I/O error occurs. |
A line is defined as a sequence of characters followed by a carriage return ("\r"), a line feed ("\n"), or a carriage return immediately followed by a line feed. The resulting string does not contain the terminating carriage return and/or line feed. The returned value is a null reference (Nothing) if the end of the underlying string has been reached.
StringReader Class | StringReader Members | System.IO Namespace