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
how to read and save data from and to a
how to read and save data from and to a file?
Jan 2, 2012 at 3:33pm UTC
denniscpp
(37)
as topic, is the program suppose to create the file themselves or do i need to create one?
Jan 2, 2012 at 3:45pm UTC
Moschops
(7244)
http://www.cplusplus.com/doc/tutorial/files/
Jan 2, 2012 at 4:42pm UTC
denniscpp
(37)
i saw that but i couldnt do it. i want to store information that is push back from a vector of a class but it didnt work. is it suppose to create a file on its own if it were to work?
also to store data, am i using ifstream?
Jan 2, 2012 at 4:46pm UTC
Moschops
(7244)
Show us the code that doesn't work.
ifstream means InputFileStream.
If you want to output data, try ofstream.
Topic archived. No new replies allowed.