What is the difference between "Console.Read();","Console.ReadLine();" and "Console.ReadKey();"?


3/17/2017 11:04:35 PM

Ali Raza

1 Answer

New Answer


Console.Read(): Input terminates as use presses space or tab. It is better for single value input. Console.ReadLine(): It allows multiple word input including space, tab as the part of the input. input terminates as return key is press. Console.ReadKey(): Reads a single keystroke from the keyboard and terminates the input.