I am trying to learn file handling in Java. I want to append text to the end of a file and tried following script:
BufferedWriter out = new BufferedWriter(new FileWriter("C:\\myFile.txt"));
out.write("aString");
out.close();
But the text file is overwritten. I know I can use RandomAccessFile to point to end of file and then append. Is this possible with BufferedWriter?