If I want to remove all contents of my file at one go Is there any API or command that will help me I want to make my file as a blank file as my application requires it I found out a method in RandomAccessFile API setlength(int n) Will it help me in flushing the contents of the file or is there any other better alternative?
SCJP,SCWCD,SCBCD<br />If Opportunity doesn't knock then build the door
posted 16 years ago
Using File.createNewFile() will probably do the trick. Matt