how to move to next line using filewriter java code example Example: java filewriter new line fileWriter.write(System.lineSeparator());