Kenneth Love wrote:
org.apache.commons.io.FileUtils.writeStringToFile(file, msg, encoding)
I need to append to an already existing file. Unfortunately, the
function call above overwrites the contents of the file.
Does a function with the functionality I need already exist somewhere
in the Jakarta Commons libraries?
At present there is no such method in [io] or any other commons library.
I recommend that you open a bugzilla enhancemnet request (following the
instructions on the website). If possible, you could write the code and
unit test and add them to the call.
BTW, we try to avoid boolean flag parameters, as they represent a bit of
a code smell. Thus we would favour an appendStringToFile() method
Stephen
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]