Hi,Am writing an application which requires storing data to a map and saving it to a file.How do i save a STL map to a file and retrieve it without the application crashing?
codedhands
0
Light Poster
Recommended Answers
Jump to PostI assume you know how to do basic file i/o?
http://www.cplusplus.com/reference/iostream/ofstream/
http://www.cplusplus.com/reference/iostream/ifstream/Write/read how many objects you have, then loop through and load/store those objects.
All 2 Replies
MosaicFuneral
812
Nearly a Posting Virtuoso
siddhant3s
1,429
Practically a Posting Shark
MosaicFuneral
commented:
Boost = red
-1
Nick Evan
commented:
Counter red. Not ALL boost is crap
+20
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.