TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Rushield Rushield
NA
4
562
file .txt in python
Apr 21 2021 12:34 PM
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.
Reply
Answers (
0
)
Learn Asp.Net MVC
Wpf Mvvm Multiple (2) views and the same instance of a viewmodel