The issue is I am not able to append the next line in file. Every time it is overwriting the file in java.
why it is overwriting the file in java? I used below code:
Code: Select all
FileWriter fw = new FileWriter(file);
BufferedWriter bw = null;
bw = new BufferedWriter(fw);