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

Popular posts from this blog

html - Styling progress bar with inline style -

java - Oracle Sql developer error: could not install some modules -

How to use autoclose brackets in Jupyter notebook? -