Hello!
As far as I know, in C++ it is possible to redirect output into streams. I now got the problem that I have to work with some data I get back from a system-command. I call that command with system("foo"); , but unfortunately it writes the command output to stdout. I tried "ostringstream reply; reply << system("foo")" but I only got the (int) return value of system, but not the result from the command called. Anyone got an idea?
BR, Björn
As far as I know, in C++ it is possible to redirect output into streams. I now got the problem that I have to work with some data I get back from a system-command. I call that command with system("foo"); , but unfortunately it writes the command output to stdout. I tried "ostringstream reply; reply << system("foo")" but I only got the (int) return value of system, but not the result from the command called. Anyone got an idea?
BR, Björn