How to write system(const char * command) output to a file in C++
<pre><code>system("C:\\Windows\\System32\\ipconfig");
</code></pre>

<p>It generates network related information in the console window. I want to store it into a text file. How to do this?</p>