How do I get a platform-dependent new line character?

Java 7 now has a System.lineSeparator() method.

Leave a Comment