Please give some more examples
ok i understand that now. So i if i wanted to save the file, i would have to make a function called Save() for example, which would open the file and also open an ostream and then go through each of the objects in the vector, use their write method to get their details into the ostream and then i have to use the ostream to save the data right using outfile.write(out , //size?? );
I just dont know how to go about doing it. Also how can i know which classes read function to use when i want to get the data from the file into the object?