Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

console output into file

Name: Anonymous 2006-01-18 5:36

Does anyone know how to force console output into file in C++?
I need to check the results from the console output generated by other programs not done by me. (e.g. ping)

Name: Anonymous 2006-01-18 15:46

>>4
>>5
Hi, thanks for replying.
Perhaps I should have been more clear.
See, I need to check if the command was in fact
valid in the first place.
I am trying to automate a module test.
But I need to know if certain executables
exist in the first place.

command [args] > file.txt
only pipes the program console stream to a file stream.

I want to know how to force CONSOLE output into file in C++?
In order to read the " is not recognized as ... command ..."
so that I can know wether the command was valid in first place

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List