Yes, the BufferedWriter would write in the same line unless and until you insert
a separate line by the newLine() method
Example:
tempWriter.write("This is a sample line");
tempWriter.newLine();
tempWriter.flush();
Notes:
- use flush() method if you want to force the writer to insert line immediately.
- You can also use "\n" in the write method to insert line, but DON'T do this.
This is not platform independent.