The FileUtils.writeStringToFile(fileName, text)
function of Apache Commons I/O overwrites previous text in a file. I would like to append data to my file. Is th
It has been implemented in 2.1 version of Apache IO. To append string to the file just pass true as an additional parameter in functions:
ex:
FileUtils.writeStringToFile(file, "String to append", true);