. Advertisement .
..3..
. Advertisement .
..4..
Hi community, I am looking for your recommendations in order to clear a text file in java. Can you help me with some suggestions? Thank you.
The basic methods to clear a file are close(), flush(), and delete() and you will need to use them in combination with each other to make sure that all of your data is removed from the text file.
1 Answer