I have a file which is already written till some lines. I have a blank line at the start of the file and I want to write in that line using Java.
I thought creating a FileWriter object by using FileWriter(filename, true) and then a BufferedWriter object will start writing from top. But its appending at the end of file. I dont want to destroy my data of file already written. How can I do that.