NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Console.ReadLine

Reads the next line of characters from Console.In, which is set to the system's standard input stream by default.

[Visual Basic]
Public Shared Function ReadLine() As String
[C#]
public static string ReadLine();
[C++]
public: static String* ReadLine();
[JScript]
public static function ReadLine() : String;

Return Value

The next line from the input stream, or null if the end of the input stream has already been reached.

Exceptions

Exception Type Condition
IOException An I/O error occured.

Remarks

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 ('\r\n'). The string that is returned does not contain the terminating carriage return and/or line feed. The return value is null if the end of the input stream has already been reached.

See Also

Console Class | Console Members | System Namespace