<human>:  append to a file
<bot>: Here is some code to append line "appended text" to file "test.txt"

with open('test.txt', 'a') as myfile:
  myfile.write('appended text')

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.