java files.write multiple lines code example
Example 1: document.write multiple lines
document.write(
'line1'
+'line2'
+'line3'
)
Example 2: how to write between lines in a file in java
RandomAccessFile file = new RandomAccessFile("c:\\data\\file.txt", "rw");
file.write("Hello World".getBytes());
file.close();