commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Fortner <phidia...@yahoo.com>
Subject Re: Looking for a string to file appending function
Date Thu, 06 Apr 2006 19:37:04 GMT
Kenneth,
You might want to try this: 
http://javaalmanac.com/egs/java.io/AppendToFile.html

HTH,
Mark

Kenneth Love wrote:
>
> Hello,
>
> I'm looking for a function similar to the following:
>
> 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?
>
> How easy would it be to overload writeStringToFile() so that it has a
> fourth parameter allowing appending to a file instead of overwriting it?
>
>                                                 Sincerely,
>                                                 Kenneth Love
>
>
> Kenneth Love                       My opinions are my own and no
> Oklahoma Tax Commission            relation to reality should
> Integrated Tax System              be inferred.
> klove@tax.ok.gov
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message