Reading from a file
I have a huge problem that i hope someone can answer.
I have a written code that executes in a console window and then i have another written program that needs to verify a text line in the other programs console window.
Is that possible to do, How can i do that?
Did you write the code for both programs?
The program is running under windows2000.
Its compiled with visual studio 6.0.
I have only written one of the programs, the one that needs to read from the other programs console window.
Is it possible to do?
Well if your program is in control of running the other program, then you could do
Then you can read it's output using fgets()
FILE *fp = popen("other.exe","r"); /* maybe _popen in M$ */