Thread: Saving Input

  1. #1
    Registered User
    Join Date
    Mar 2013
    Location
    England
    Posts
    9

    Saving Input

    Hi,
    I have a written a small program and I'd like it to be so that the user can create
    a password and it will be the same next time you run the program. Sorry if this is
    really simple but I'm quite new to this. Thank you for any advice or help.
    Joe
    Last edited by Joewbarber; 03-21-2013 at 10:50 AM. Reason: Text on one line

  2. #2
    [](){}(); manasij7479's Avatar
    Join Date
    Feb 2011
    Location
    *nullptr
    Posts
    2,657
    The simplest way would be to save the password in a file.
    (Read up on File IO in C++)

    Once you have done that, you'd want to hash the password before saving it..so that it is not possible to read it by opening a text file.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. saving entire input into 1 string?
    By rodrigorules in forum C++ Programming
    Replies: 3
    Last Post: 04-09-2010, 02:44 PM
  2. saving
    By Saimadhav in forum C++ Programming
    Replies: 7
    Last Post: 09-20-2008, 09:27 AM
  3. Saving data input in C
    By thebestdrummer1 in forum C Programming
    Replies: 6
    Last Post: 02-06-2008, 05:05 AM
  4. Saving?!
    By kjmagic in forum C++ Programming
    Replies: 6
    Last Post: 12-19-2003, 11:30 AM
  5. Saving
    By ZachariahLee in forum C++ Programming
    Replies: 4
    Last Post: 02-06-2003, 08:05 AM

Tags for this Thread