cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
output to text file
output to text file
Dec 20, 2012 at 10:37am UTC
vgoel38
(133)
I want the output of a c++ program to be printed in a text file instead of command line/console. how to do it?
I am using dev c++ 4.9.9.2 compiler.
Dec 20, 2012 at 10:47am UTC
Darkmaster
(564)
http://www.cplusplus.com/doc/tutorial/files/
Dec 20, 2012 at 10:58am UTC
vgoel38
(133)
thnx dude
Dec 20, 2012 at 3:42pm UTC
SamuelAdams
(1535)
another way is to run the program from the command line and redirect the output to a file
myprogram > filename.txt
Topic archived. No new replies allowed.