How to delete content of a file programatically without deleting file or without creating a new file with same name?
<p>I need to delete content of a file. I know that I can delete file and create with same name, but I don't want to do that. I am using PrintWriter object for writing to file. Specifically I don't want to perform any action other that writing, reading and deleting content to file.</p>

<p>Thanks in advance for your answers.</p>

<p>Bipin</p>
