In this article we will look into the Difference between Console.Read and Console.ReadLine
Lets see the difference below...
Console.Read
- Read single or next character from the input stream
- Read maximum of only one character
- Reads ASCII value of the character
- Return types is integer
Console.ReadLine
- Red line reads group of characters from the input stream
- Read line read maximum of 255 character it depends on OS prompt limit
- Read string value of the characters
- Return type is string