cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
Redirect output into a file
Redirect output into a file
Mar 11, 2016 at 7:09am UTC
jeff14
(6)
How do you redirect output into a file?
Mar 11, 2016 at 7:30am UTC
TheIdeasMan
(6817)
Hi have a read of this:
http://www.cplusplus.com/reference/fstream/ofstream/ofstream/
Mar 11, 2016 at 7:49am UTC
naraku9333
(2163)
In case you don't want to modify the code you can redirect on the terminal.
Windows:
https://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/redirection.mspx?mfr=true
Linux:
http://www.tldp.org/LDP/abs/html/io-redirection.html
Topic archived. No new replies allowed.