Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.

C++ I/O with command prompt


ghost's Avatar
0 0

Lets say I'm using a command such as system("ipconfig") on a windows machine, how might I go about taking the information given from using ipconfig and storing it in a text file? Is this even possible?


ghost's Avatar
0 0

Use redirects. For example > is write to, and >> is append.

markupipconfig > output.txt


fashizzlepop's Avatar
Member
0 0

Or look for a way to do this without limiting your host OS?