Java File making new line
I've got a method which has a String and writes it to a file. The problem I got is everytime I want to add a new String it puts the new String right next to the old one on the file where as I want to make each new String on a new line if its written. So for example this may be written with two seperate strings:
But what I really want is the Strings on a new line:
At my lesson they said at the end of the String if you add "\n" it makes a new line but it doesn't work for me. I'm on xp professional operating system.
Please can someone help,