[Advanced-java] Overwriting of file??

Lorin Davis ldavis at pangaeainc.com
Mon May 12 16:13:04 2003


Why not try to delete the file at the destination before calling the rename

use the File.exists() and a File.delete() 
methods.


-----Original Message-----
From: Bikash Paul [mailto:bikashpaul_2001@yahoo.com]
Sent: Monday, May 12, 2003 2:54 AM
To: advanced-java@lists.xcf.berkeley.edu
Subject: [Advanced-java] Overwriting of file??


Hi all friends,

I am moving file from one folder to another folder
programatically(by renameTo() of File class).Now if
same file(means with same name and extension) is there
I want to overwrite on it.Now my application can't
move file if same file is there on destination
folder.Can any plz guide me how i can slove my problem

Regards
Bikash

__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com
_______________________________________________
Advanced-java mailing list
Advanced-java@lists.xcf.berkeley.edu
http://lists.xcf.berkeley.edu/mailman/listinfo/advanced-java