0

In c# ... What is the difference between console.readline and console.read ?

Hi What is the difference between console.readline and console.read in c# While using visual studio it write that read is for int and readline is for string but when coding using console.read to read an integer it doesn't work !!

25th Aug 2019, 9:43 PM
BlaCK DoT
BlaCK DoT - avatar
2 Antworten
+ 3
Console.Read() reads just a single character, while Console.ReadLine() reads all characters until the end of line.
25th Aug 2019, 10:12 PM
BroFar
BroFar - avatar
0
Ty so much i will try
25th Aug 2019, 10:02 PM
BlaCK DoT
BlaCK DoT - avatar