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
opening a file
opening a file
Oct 8, 2008 at 9:47pm UTC
serenityy72
(1)
i understand that you can use c++ to open a file to read, but when you output in a file can you then make the program put the output in the file and open the file in a window. i use visual studio.
Oct 9, 2008 at 2:41am UTC
firedraco
(6247)
Just cout the data you are getting...
1
2
3
4
5
//psuedocode
while
(file isn
't end) { getline(data) cout<<data }
Oct 9, 2008 at 12:57pm UTC
Umz
(205)
Yea you can do something like what firedraco says to output data to an external file. Have to use fstreams
Topic archived. No new replies allowed.