content = f"{username}:{password}"
with open('file.txt', 'a') as f:
f.write(content)