So im wanting to be able to save the contents of classes in my code to a file and load them back at a later time, ive been looking at boost for serialization but i cant seem to find a good enough guide that makes sense.
i want to save a class that is something like this:
Code:
class data {
public:
string words[128];
float n[16];
string last_string[8];
};
i want to be able to have a function that saves the contents of that class to a file, and another function that can load it back in.

Thanks in advance,
Jeromy