Difference between Console.Read() and Console.ReadLine()?

avirk picture avirk · Jul 26, 2011 · Viewed 185.2k times · Source

I'm new to this field and I'm very confused: what is the real difference between Console.Read() and Console.ReadLine()?

Answer

VMAtm picture VMAtm · Jul 26, 2011

Console.Read() reads only the next character from standard input, and Console.ReadLine() reads the next line of characters from the standard input stream.

Standard input in case of Console Application is input from the user typed words in console UI of your application. Try to create it by Visual studio, and see by yourself.