Console.Read Method ()
Reads the next character from the standard input stream.
Assembly: mscorlib (in mscorlib.dll)
The Enter key. Pressing Enter appends a platform-dependent line termination sequence to your input (for example, Windows appends a carriage return-linefeed sequence). Subsequent calls to the method retrieve your input one character at a time. After the final character is retrieved, blocks its return again and the cycle repeats.method blocks its return while you type input characters; it terminates when you press the
Note that the method does not return -1 unless you perform one of the following actions:
Press an equivalent key that signals the end-of-file condition, such as the F6 function key in Windows.
Redirect the input stream to a source, such as a text file, that has an actual end-of-file character.
Available since 10
Available since 1.1