The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 04-26-2002
J.P's Avatar
J.P J.P is offline
Registered User
 

Join Date: Nov 2001
Location: Sweden
Posts: 67
Saving a vector to a file

Another C++ question, please do notify me if this forum is C-only!



I'm having a vector...

vector<Person> x;

... with a class I've defined (Person).

I have several elements in this vector and I would like to save it to a file (binary (?)). And later on open up this file to retrieve the elements in the vector.

Any suggestions on how to accomplish this?
__________________
[ Please put signature here ]
Reply With Quote
Remove advertisements
!!
Forum Sponsor