Read() Readline() ReadKey() Accept the string value and return the string value.Accept the string and return IntegerAccept the character and return Character
Difference between Read(),Readline() and ReadKey in C#
Difference between Read(),Readline() and ReadKey() in C#
Declaration in Application for Read: Console.Read();
Declaration in Application for Readline(): Console.Readline();
Declaration in Application for ReadKey(): Console.ReadKey();
1.The above mentioned three methods are mainly used in Console application and these are used for return the different values .
2.If we use Read line or Read() we need press Enter button to come back to code.
3.If we using Read key() we can press any key to come back code in application