0

IO Exception: the handle is invalid

I'm trying to clear the console but after adding Console.Clear(), I'm getting an IO error. https://code.sololearn.com/cAk8kEpmKzKG/?ref=app This is the code in question.

7th Sep 2017, 2:59 AM
Sean Douglas
Sean Douglas - avatar
2 ответов
+ 2
Console.Clear() will throw an error (IOException) if it is redirected from a normal console output. This means that it most likely will not work in the Sololearn code playground.
7th Sep 2017, 3:17 AM
ChaoticDawg
ChaoticDawg - avatar
0
Ah, that's disappointing. Thanks for the answer
7th Sep 2017, 3:26 AM
Sean Douglas
Sean Douglas - avatar