dcsimg

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.