Append to file



examples/files/append.py
filename = 'data.txt'

with open(filename, 'a') as out:
    out.write('append more text\n')