0
Can anyone tell me difference between Console.ReadKey() and Console.ReadLine()
when I was using ReadKey here in sololearn it was throwing an exception so can anyone tell me difference
7 Answers
+ 2
SoloLearn really isn't the best way to test code, because you can't input text during the program's execution
+ 1
ReadKey reads a single character or keystroke, whereas ReadLine reads until there is a carriage return, or when the user types [Enter]
0
um... one reads a key, and the other reads a line...
0
SoloLearn probably tried to use a line of the as input for the ReadKey method
0
ok but actual difference what is in between?
readkey read a text only?
0
remember I am ur first follower đ
0
OK thanks