Okay, I'm doing some experimenting on file I/O using a user/password access program I'm writing. My problem right now is while the program will append the new user and password, it does so whether or not that user name exists already. I'm not worried about duplicate passwords, but I don't want duplicate usernames. My question is, when appending the new username to a data file, how do I check to see if the username variable matches any existing usernames on the file already?
I wouldn't think my code need be posted on this, but if it is, let me know.
Thanks in advance for any help you may lend, I've searched for this, but maybe I'm not using the right terminology to find anything useful.