Sorry, made an error in the title, hence posting again.

Hi Gurus,

I want to capture the stdout/stderr from a system() command into a string. How would I do this? I know I can capture into a file, but how into a string? Do I have to capture in a file, and then read the file? That sucks!

Kamran

P.S. Only portable solutions please (no MFCs)