Interacting with Shell
I want my program to execute a command [ ie, System(..) ], and read the resulting output into a String.
Im having a hard time finding information on how to do this (no doubt its out there, I just don't know what to look for).
Can anyone share and example or point me in the right direction?
It's platform specific. The C language has no facility to do this directly. See http://www.eskimo.com/~scs/C-faq/q19.30.html.
Use popen() if your system has it.
Yes, that's what the FAQ said that I posted :p