Check out example codes for "java filewriter new line". It will help you in understanding the concepts better.

Code Example 1

fileWriter.write(System.lineSeparator());

Learn ReactJs, React Native from akashmittal.com