Read() & ReadKey()
What is the difference between Console.Read() & Console.ReadKey().
4 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
VulpesRank #55 · 29.2K reputationPosted Sep 17, 2012, 1:12 AM EDT
If you use Console.ReadKey(), then the program will end as soon as you press any key.
VulpesRank #55 · 29.2K reputationPosted Sep 16, 2012, 3:26 PM EDT
The Console.Read() method is more difficult to explain and understand, but this link (and example) explains it well:
http://www.dotnetperls.com/console-read
Posted Sep 16, 2012, 3:43 PM EDT
Posted Sep 17, 2012, 3:39 AM EDT