W
WildHare
I have a console application that I want to continue to run until I press a
key.
How can I get a keypress without stopping execution?
Thanks.
key.
How can I get a keypress without stopping execution?
Thanks.
and test to see if the character is Q and quit or read another character.Tim Begin said:Console.Read() will wait until a key is pressed. You can get the input
WildHare said:But that is the point, I don't want the application to stop. I want the app
(in a loop) to keep running UNTIL I press 'Q'.
and test to see if the character is Q and quit or read another character.