If you're primarily using printf, open a file with fopen and write to it instead with fprintf().
If you're primarily using cout, open a an ofstream and write to it instead of cout.
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 6 of 6
Thread: How to output in a .txt file?Threaded View
|
Click Here to Expand Forum to Full Width |