PDA

View Full Version : Getting output of commands (C++)



c_olin
November 14th, 2007, 01:53 AM
From within my C++ program I want to be able to send a command to the shell, and get the output. I know of the function system(); command. But how could I get the output of the command I send through this function?

Thanks

Sporkman
November 14th, 2007, 03:21 AM
You could always write the output to a file, then read the file...