November 16th, 2012, 03:08 PM
TXT File reading
Hi, i'm relatively new to python programming and have been asked to do a project for university. I'm attempting to make a user account program with a register, login and lost password function.
I've decided to go down the route of when a user register their account, the vars to temporarily store the username, email & pw are then added to a dictionary. The dictionaries at the end of the registration then are saved to a external txt file.
I have reached my first problem in that I don't know how to read from the text files and create an if statement to check whether an email exists for example.
The code so far:
Any help is appreciated!
November 16th, 2012, 03:15 PM