Append to file

  • append


examples/files/append.py

filename = 'data.txt'

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