Reputation: 1948
I have a console application that I didn't write. Is there some easy way to read from it? I need to have the input still on the console window, but read what's being displayed.
I care not whether the output displays to the console or not, so long as the input still works.
Upvotes: 6
Views: 2637
Reputation: 9294
Console Application Runner Classes are excellent to control the console application processes and to redirect input and output where required.
Upvotes: 4
Reputation: 2524
I had a project that is doing the same thing. I have a console application written in VB.Net and I run and capture it's output using my Delphi application. I have successfully achieved this by following this tutorial by Zarko Gajic.
Upvotes: 0