How do I "read" some text on console?
example:
then the program.exe i called from my code, puts some output string on the screen and I'd like to get that output message.Code:system("program.exe");
I could call the program from my code this way:
then I could open the file and read the contents. But I'd like to know if there is a more convenient way to do that.Code:system("program.exe > output.txt");