I'm learning C++ and i'm creating a simple project for practice. Now i want to save multiple instances of the same class that are stored in a vector. I tried to save the whole vector in a binary file using ofstream, but the result was disappointing... What is the easiest way to save multiple instances and read them back??
Asked
Active
Viewed 221 times
0
-
google:// serialization in C++ – SergeyA Oct 23 '15 at 15:05
-
1You should read this: http://www.parashift.com/c++-faq/serialization.html – NathanOliver Oct 23 '15 at 15:06
-
Perhaps Boost fits your needs: http://www.boost.org/doc/libs/1_59_0/libs/serialization/doc/index.html – Christian Hackl Oct 23 '15 at 15:07
-
PicklingTools is another solution: http://www.picklingtools.com – rts1 Oct 23 '15 at 16:54