Hi !!!

I want to overwrite an existing file with the new version of the same file name.

Right now what i am doing is like below:

boolean success = file.renameTo(new File(destxmldir, file.getName()));

But it does not overwrite if the same file exists before....

I just want to overwrite it by default whether the file changed or not...

Please help me...

Thanks in advance.....