I want to save my test prog processing result showing to other
newbie, (haha, I am just a new new newbie)
I think is it possible to change cout direction from monitor to a file?
just like we often do in dos:
The statement can save output directory list.Code:c:\>dir >>test.txt
How to do in c++?



LinkBack URL
About LinkBacks



fstream outfile' has initializer but incomplete type
I used to be an adventurer like you... then I took an arrow to the knee.