Human: writing string to a file on a new line everytime? Assistant: 
Here is some code to write a string `My String` to a file `file` including new line character

file.write('My String\n')

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