Thread: I Want to save the info that was input.

  1. #1
    Registered User
    Join Date
    Mar 2005
    Location
    Freeport, IL
    Posts
    32

    I Want to save the info that was input.

    I would like to find information on how to so what most programs do.

    Save the information used, so when the program is started again it will load up that information that I had previously input into the program.

    For instance, in my program the user will input information on a particular patient and possibly change that info during the patients stay at the hospital, then after the patient leaves we will delete that informaton. So I need to know how keep that information saved if we shut down the program.


    Thanks for any help.

  2. #2
    The superhaterodyne twomers's Avatar
    Join Date
    Dec 2005
    Location
    Ireland
    Posts
    2,273
    >> I would like to find information on how to so what most programs do.
    Wow.

    I think what you're looking for is how to first save information to a file and then how to load it from a file afterwards. http://www.cprogramming.com/tutorial/lesson10.html It's fairly straightforward.

  3. #3
    Registered User
    Join Date
    Mar 2005
    Location
    Freeport, IL
    Posts
    32

    Smile

    Ok I know how to use ifstream and ofstream to save like text files and bring them back in to manipulate them. I guess what I want is to have a save funtion to save like a database type information file, NOT to a text file.

    Lets say you enter information into a basic address book program, you would want to save that information you entered so as not to have to input that information again when you restart the program. Wouldn't make sense to have to reenter the info each time you start the address book.

    Thanks

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Printing Length of Input and the Limited Input
    By dnguyen1022 in forum C Programming
    Replies: 33
    Last Post: 11-29-2008, 04:13 PM
  2. Save vs Save As.... OPENFILENAME flags
    By csonx_p in forum Windows Programming
    Replies: 16
    Last Post: 06-01-2008, 02:42 PM
  3. save webpage? some save some not
    By kryptkat in forum Tech Board
    Replies: 3
    Last Post: 06-07-2005, 09:21 AM
  4. Help doing an e-mail program in c...
    By Tyler_Durden in forum C Programming
    Replies: 88
    Last Post: 01-02-2005, 03:12 PM
  5. h/w help
    By helpme in forum C Programming
    Replies: 20
    Last Post: 10-21-2003, 09:36 AM