Hi,
I would like to be able to either pipe data into my prog from stdin or get data from a file.
If I try to check by using
...it blocks and user must hit return to continue.
Is there a test I can do in C# that will not block?
Thanks
I would like to be able to either pipe data into my prog from stdin or get data from a file.
If I try to check by using
Code:
if( Console.In.Peek() != -1 ) { Console.WriteLine("GOT STDIN"); return; }
Is there a test I can do in C# that will not block?
Thanks
Comment