Skip to content
Advertisement

Tag: txt

extracting info from a text file in python

I am making a system in which when a user plays my game, it compares their score to what they have scored before by using a username and password. the info is stored in text file in the format: score*username*password. I am trying to get those into different variables so that I can check them against other variables. this is

Storing data in .txt file and retrieving it

I was trying to make some sort of login system, I have it so that if a username and password are in test.txt (there is multiple ones) it should let you login, I haven’t even passed the step of verifying if the username and password are in the txt file and its destroying me, I don’t know how to do

Advertisement