Use a PrintStream (or its equivalent Writer) and let the println()
method do its job, i.e. it will print the correct newline combination
depending on your platform. If you must do it yourself have a look at
the System.getProperty("line.separator") property.
kind regards,
Jos