I have a string that contains new lines. I send this string to a function to write the String to a text file as:
public static void writeResult(String wr
The BufferedWriter class offers a newLine() method. Using this will ensure platform independence.
newLine()