PTextReader.ReadLine Method

Definition

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

public:
 override System::String ^ ReadLine();
public override string ReadLine ();
override this.ReadLine : unit -> string
Public Overrides Function ReadLine () As String

Returns

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

Exceptions

The number of characters in the next line is larger than MaxValue

An I/O error occurs.

There is insufficient memory to allocate a buffer for the returned string.

Applies to