examples/files/append.py
#!/usr/bin/env python

filename = 'data.txt'

out = open(filename, 'a')
out.write('append more text\n')
out.close()