Mac text files tend to end in carriage return (\r) rather than \n or \r\n
When writing a custom, non-text non-XML format, don't rely on this.
Never use println() to output a line break.
println()