how to delete the content of text file without deleting itself
<p>I want to copy the content of file 'A' to file 'B'.
after copying done I want to clear the content of file 'A' and want write on file 'A' from it's beginning .
I can't delete the file 'A' as it is connected with some other task.</p>

<p>I was able to copy the content using java's file API(readLine() ), but don't know how to clear the content of file and set the file pointer to beginning of the file.</p>

<p>Plz help how to do this.</p>

<p>pl. let me know if there's any alternative for this..</p>
