Outputs a list of lines, each terminated by a newline character
The first argument of these is the file name to write to.