Example to append to file in Python

import time
with open("test.txt", "a") as myfile:
myfile.write(str(time.time())+'\n')

Comments

Popular posts from this blog

Check MySQL query history from command line

Installing chocolatey on Windows

Fixed: ImportError: No module named utilities.common.tools