How to delete only the content of a file in Java?
file, java
Solution
How about this:
new RandomAccessFile(fileName).setLength(0);
Problem
How can I delete the content of a file in Java?
file, java
How about this:
new RandomAccessFile(fileName).setLength(0);
How can I delete the content of a file in Java?