Console.Read() Method is used to read the next character from the standard input stream. This method basically blocks its return when the user types some input characters. As soon as the user press ENTER key it terminates.
Syntax: public static int Read ();
Return Value: It returns the next character from the input stream, or a negative one (-1) if there are currently no more characters to be read.
Exception: This method will give IOException if an I/O error occurred.
Below programs illustrate the use of above-discussed method:
- Difference between Method Overriding and Method Hiding in C#
- C# | Math.Max() Method
- C# | Method Parameters
- C# | IsNullOrWhiteSpace() Method
- C# | EndsWith() Method
- C# | Uri.IsBaseOf(Uri) Method
- C# | Join() Method | Set - 1
- C# | Math.Min() Method
- jQuery | die() Method
- C# | Math.Tan() Method
- C# | Math.Sin() Method
- Decimal.Add() Method in C#
- C# | String.Contains() Method
- C# | Math.Exp() Method
- C# | Dictionary.Add() Method
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.