[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.
Assembly: System.IO (in System.IO.dll)
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.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.