Hello I made a login system which stores usernames and password but it currently only holds one and every time I add a new one it deletes the old one how could I make so it continuously adds more to the list here is my code
def register_user():
username_info = username.get()
password_info = password.get()
file = open("info.txt","w")
file.write('username= '+username_info + "\n")
file.write('password= '+password_info)
file.close()