with open("data.txt", "a") as file: file.write("New data")