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
If you want to generate text, it's probably easier to create a PrintWriter on top of that BufferedWriter, and use the methods in PrintWriter (like println) to do the writing.