Hi satyasri ch welcome to Javaranch
Firstly please make you subject little descriptive. Read
this for more information.
can any body tell how to delete content of file but not file
And if you want to delete the entire content of a file then just delete the file and make a new one with same name.
Please take some time to read the ask good questions link below.
Hope this helps