How to redirect standard input for a .NET console application
January 20, 2016 Leave a comment
Normally .NET console applications read their input from the console through Console.ReadLine(). The user is prompted for some input, they enter some text, press enter and the console can read this input.
However, this is not the only option you have. The standard input channel can be overridden.