Press anykey to continue
Taken from http://www.codeproject.com/useritems/PressAnyKeyToContinue.asp
private void FlushConsole()
{
while( Console.In.Peek() != -1 )
{
Console.In.Read();
}
}
Console.WriteLine("Press any key to continue...");
FlushConsole();
Console.Read();
private void FlushConsole()
{
while( Console.In.Peek() != -1 )
{
Console.In.Read();
}
}
Console.WriteLine("Press any key to continue...");
FlushConsole();
Console.Read();
Comments