in reply to Read value from file, replace, then write to new file

So the generated password is recorded in a file as it is. What kind of shit is this? So anyone take a look at the file will know the password.

If this is a real system, nobody, including you or the system admin is supposed to know this.

  • Comment on Re: Read value from file, replace, then write to new file

Replies are listed 'Best First'.
Re^2: Read value from file, replace, then write to new file
by rycher (Acolyte) on Dec 24, 2007 at 20:56 UTC
    Thanks everyone for the help. I was half-expecting to be brutally made fun of and laughed at for the sloppy coding. ;-)
    I will try some of these sugesstions.
    Cop: The randomly generated password is going to change every day. The file gets overwritten once a day with a new password. This password will reside in a password-protected web area for the admins of that particular to view and assign to users.