(C++) Saving / reading structures to / from disk