Hi, I'm looking to make an application for myself that will allow me to find my password I have between my email and my password to save it then it prevents me to write my email and I re-read my password but I can not put more email and password in my text file if I enter another email and password its primed me the other email and word Pass.
- def inscription_code():
- email_inscription = email_entry.get()
- pass_inscription = pass_entry.get()
- File_inscription_name = os.listdir()
- if str(email_inscription) + ".txt" in File_inscription_name:
- print("email deja utiliser")
- else:
- File = open(str(email_inscription) + ".txt", "w")
- File.write(str(email_inscription) + ":" + str(pass_inscription))
- File.close()
-
- def File_read():
- File = open()
- File.read()
- print(File)
- File.close()
thank you in advance.