Saving vectors of structures problem
I'm new on here, and I could do with any helpful info some kind soul could provide on a working method of saving a vector of structures to a binary file.
I'm a CS student at a University in London (England). They've not taught us anything about this, which is most annoying.
Could I beg of anyone versed in vectors and structures to knock up a sample bit of code that would save any vector containing structures to a binary file then load it back in?
This program I've written so far for my assesment due in next Tuesday saves and loads - but just populates the loaded data full of garbage, and it only seems to save the data when it wants to.
I'm so going to fail this subject at this rate... yet I aced my beginner's Java subjects. :(