Ads

C# Programming 21 - Difference between Console.Read and Console.ReadLine

Hello All,

In this article we will look into the Difference between Console.Read and Console.ReadLine




Lets see the difference below...

Console.Read

  1. Read single or next character from the input stream
  2. Read maximum of only one character
  3. Reads ASCII value of the character
  4. Return types is integer


Console.ReadLine

  1. Red line reads group of characters from the input stream
  2. Read line read maximum of 255 character it depends on OS prompt limit
  3. Read string value of the characters
  4. Return type is string

Post a Comment

0 Comments
* Please Don't Spam Here. All the Comments are Reviewed by Admin.

#buttons=(Accept !) #days=(20)

Our website uses cookies to enhance your experience. Learn More
Accept !