Store System() output (win platform)

As windows users may know, the only way to analyze disk fragmentation in Vista (without 3rd-party software) is to use command line "defrag c: -a". I'm making a GUI application that does exactly that, but I'm stuck at how to output System() function to a textbox.

I need to know how to store output by System() function to a string. I'm a beginner, so I'd like to hear more detailed explanation. Thanks in advance!
Topic archived. No new replies allowed.