I have been using the spawnl() function to run an external EXE but have a problem. I can get spawnl() to work just fine the only problem is that I don't want the program output printed on the console screen. I want it saved in a text file so that I can read and manipulate it. I did the first thing that came to mind:
FILE<<spawnl(P_WAIT, "grab.exe", "grab.exe -args", NULL);
But that of course just sends a '0' to the text file indicating that spawnl() was successful.
Any suggestions? Thanks.