Loading and Saving vectors to a file
I am using C++ Builder and I have a vector array of Appointment objects. I want to save it to and load it from a file. Currently, I am using ifstream and ofstream with binary files. I have a header that contains the size of the vector that will be saved alongside the data, so as to know its size when loading. Is serilization a better way to do this? If so, do I need to use the boost library, or another way? Here is my current code: class appointment { public: appointment(); appointment(TDateTime aDate, TDateTime aReminderDateTime, string aType, string aLocation, string aComments, bool