How do I remove all the content/information in a file?

John Zukowski

You can change the file length by calling the setLength() method of RandomAccessFile. Setting the length to zero will effectively free up the rest of the file content.

0 Comments  (click to add your comment)
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.