Rather insecure way of storing your passwords. I would suggest introducing some sort of encryption and password.
You need to store the data somewhere, a simple file will do the trick. But like I said, storing plain-text passwords in files is a no no. So, what you need to do is find some sort of encryption function that allows a password/key and use that when you store the data.
Look into my.computer.filesystem.read/writealltext() function for read and writing files. I would suggest AES or something similar as encryption. You probably gonna need further explanation but I simply dont got the time for it right now, maybe tomorrow.