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

ios - Memory not freeing up after popping viewcontroller using ARC -

Django REST Framework perform_create: You cannot call `.save()` after accessing `serializer.data` -

Why does Go error when trying to marshal this JSON? -