I would like the following to be printed
test1
test2
test3
test4
But I can\'t seem to get the text to the next line.
Plea
Depending on what text editor you are opening the file with and what operating system you are using you might have to use "\r\n" instead of just "\n".
Give it a try.