Check out example codes for "how to skip a line with a filewriter java". It will help you in understanding the concepts better.

Code Example 1

FileWriter() writer = new FileWriter("example.txt");
writer.write("First Line" + "\r\n"); //\r\n creates a new line
writer.write("Second Line");

Learn ReactJs, React Native from akashmittal.com