Thread: How does one save variables to a file?

  1. #1
    Registered User
    Join Date
    Mar 2004
    Posts
    16

    How does one save variables to a file?

    I have several variables in a program of mine that I would like to be able to save to a file, exit the program, then recall the data at request another time the user runs the program. Basically to save data, I guess. I'm pretty new to C++ so help would be appreciated.

  2. #2
    Software Developer jverkoey's Avatar
    Join Date
    Feb 2003
    Location
    New York
    Posts
    1,905

  3. #3
    Registered User
    Join Date
    Mar 2004
    Posts
    16
    Thanks very much. I looked around but I guess I did a bad job. I was looking for a complete explanation and you supplied me with one. Thanks for the quick response!

  4. #4
    Software Developer jverkoey's Avatar
    Join Date
    Feb 2003
    Location
    New York
    Posts
    1,905
    no prob, seems like you're new to the boards somewhat, so just for heads up in the future

    Don't be afraid to still ask questions here if you're stuck, your search skills will improve with time.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. disposing error
    By dropper166 in forum C# Programming
    Replies: 2
    Last Post: 03-30-2009, 11:53 PM
  2. gcc link external library
    By spank in forum C Programming
    Replies: 6
    Last Post: 08-08-2007, 03:44 PM
  3. Encryption program
    By zeiffelz in forum C Programming
    Replies: 1
    Last Post: 06-15-2005, 03:39 AM
  4. archive format
    By Nor in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 08-05-2003, 07:01 PM
  5. System
    By drdroid in forum C++ Programming
    Replies: 3
    Last Post: 06-28-2002, 10:12 PM