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)
Syntax
'Declaration
Public Overrides Function ReadLine As String
public override string ReadLine()
public:
virtual String^ ReadLine() override
abstract ReadLine : unit -> string
override ReadLine : unit -> string
public override function ReadLine() : String
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.
Remarks
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 null Nothing nullptr unit a null reference (Nothing in Visual Basic) if the end of the input stream is reached.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.