SyntaxFix
Write A Post
Hire A Developer
Questions
bufferedWriter.write(text + "\n"); This method can work, but the new line character can be different between platforms, so alternatively, you can use this method:
bufferedWriter.write(text + "\n");
bufferedWriter.write(text); bufferedWriter.newline();