Serialization

This is a discussion on Serialization within the C++ Programming forums, part of the General Programming Boards category; I want to simply save a list of variables to "preset" files and be able to retrieve them whenever I ...

  1. #1
    Registered User
    Join Date
    Feb 2005
    Posts
    22

    Serialization

    I want to simply save a list of variables to "preset" files and be able to retrieve them whenever I choose this preset. I'm not sure exactly how to do this. Can anyone help me get started this?

  2. #2
    Registered User hk_mp5kpdw's Avatar
    Join Date
    Jan 2002
    Location
    Northern Virginia/Washington DC Metropolitan Area
    Posts
    3,803
    What exactly are you having problems with? Is it the file I/O part?
    "Owners of dogs will have noticed that, if you provide them with food and water and shelter and affection, they will think you are god. Whereas owners of cats are compelled to realize that, if you provide them with food and water and shelter and affection, they draw the conclusion that they are gods."
    -Christopher Hitchens

  3. #3
    Registered User
    Join Date
    Feb 2005
    Posts
    22
    I'm just not sure how to save the variable to a file so I can access them at a later time...
    So I don't lost my settings

  4. #4
    Senior Member joshdick's Avatar
    Join Date
    Nov 2002
    Location
    Phildelphia, PA
    Posts
    1,146
    What you do is write your information to a file and then read that information whenever you need it. Read up about <fstream>.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Boost Serialization unordered_multimap
    By idleman in forum C++ Programming
    Replies: 1
    Last Post: 05-06-2009, 11:14 AM
  2. Serialization problem
    By noobcpp in forum C++ Programming
    Replies: 17
    Last Post: 07-15-2008, 08:01 PM
  3. Boost Serialization: shared_ptr
    By KessiMC in forum C++ Programming
    Replies: 0
    Last Post: 12-26-2007, 07:17 PM
  4. Serialization yay!
    By Shamino in forum C++ Programming
    Replies: 11
    Last Post: 06-10-2007, 05:53 PM
  5. serialization and object types
    By Joe Monti in forum C++ Programming
    Replies: 5
    Last Post: 04-03-2003, 10:17 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21