How to store objects(Object properites) in a file with c++ native codes?
-
I have n no of objects of a class. So what I want to do is - I want to save those data to a file when my application exit. So how it is possible to write multiple objects of same class to a file and read that file to make objects of the same class. Thanks in advance. :omg: :doh:
-
I have n no of objects of a class. So what I want to do is - I want to save those data to a file when my application exit. So how it is possible to write multiple objects of same class to a file and read that file to make objects of the same class. Thanks in advance. :omg: :doh:
Google "C++ Serialization" There are many ways to do this; but it seems using the Boost serialization library is widely recommended.
I'd rather be phishing!
-
Google "C++ Serialization" There are many ways to do this; but it seems using the Boost serialization library is widely recommended.
I'd rather be phishing!
Or VARIANT, if it's Win32.