How do you get the output from a program as a return (or some else way)? Like when calling a program with either exec() or system(), and then get back the printout from that program, not just it's returnvalue.
Like "system("ls")" and get what the result the result of the ls command, not just zero or non zero...
Using unix, but want to know how you do in dos too...