So I was creating a Register/Login in python. I did mostly of it but I can't seem to find a correct answer over here
def DisplayMenu():
status = input("If you have an account type in 'log' or to make an account type in 'reg': ")
if status.lower() == "reg":
RegisterUser()
if status.lower == "log":
LogIn() I need help in this part
This is the base
def LogIn():
ToLogIn = open('Ustore.txt', 'r')
I created this and I was stuck from here.
The problem basically is that, this function would open the text file and search the username and password in it. I can't seem to find a specific code to command it to find it and then complete the whole action by allowing the user, upon typing his password and username and grant him access. Please help!