java FileWriter, periodically delete file contents -
i using several java filewriter append data output files. files remain open during processing , periodically written (appended to). occasionally, hit point in logic contents of open file needs deleted (the file length become zero) , start appending again top.
without closing , reopening file, there efficient method accomplish using filewriter?
without closing , reopening file, there efficient method accomplish using
filewriter
?
no. have use randomaccessfile
performance , character-set issues.
create new filewriter
.
Comments
Post a Comment