Nowayz
Nowayz

Reputation: 1948

How to read from an external console application?

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

Answers (2)

SimaWB
SimaWB

Reputation: 9294

Console Application Runner Classes are excellent to control the console application processes and to redirect input and output where required.

Upvotes: 4

rajeemcariazo
rajeemcariazo

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

Related Questions