I wan't to know how to copy system command results into a string in my program. For example if I'd run "dir" the names of all folders would be stored in my program. In that case I would use system("dir") to run the command. Please don't just post your own "dir" function, since I'm going to use other commands too.
Since Google has recently begun to "suck", I didn't find anything useful from there.
thanks in advance