Code:
cout << system("command");
Is valid. So is any ostream. You can connect to a temporary file, dump everything from the system() command into the temp file then read and parse the file for data.