Hello to all!
The question arose how to make it so that when writing !clear
to the console there was any action. For example: I entered any text into the console and wrote! Clear and the console was cleared.
Hello to all!
The question arose how to make it so that when writing !clear
to the console there was any action. For example: I entered any text into the console and wrote! Clear and the console was cleared.
You guys are already abandoning elementary thoughts! It is necessary to think with your brain even occasionally ...
string read_buffer = Console.ReadLine(); if(read_buffer=="!console") { Console.Clear(); }
IOException:
> Attempting to an IOException:
will still be correct. Clear
method in a try…catch
block. - Costantino RupertSource: https://ru.stackoverflow.com/questions/152489/
All Articles