I am using the following to write StringBuilder into an existing text file.
FileUtils.writeStringToFile(file, sb.toString(), StandardCharsets.UTF_8);
The problem is that it overwrites the file where I just want to append sb.toString() to the existing content of file. How to workaround this issue?
 
     
     
    