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:
- FileUtils.writeStringToFile
- FileUtils.openOutputStream
- FileUtils.write
- FileUtils.writeByteArrayToFile
- FileUtils.writeLines
ex:
FileUtils.writeStringToFile(file, "String to append", true);
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…