Welcome to WebmasterWorld Guest from

Forum Moderators: incrediBILL

Message Too Old, No Replies

File object in java



11:52 am on Jul 30, 2001 (gmt 0)

Inactive Member
Account Expired


How do i move a file from one location to another using the File object in java
2:39 pm on July 30, 2001 (gmt 0)

Junior Member

10+ Year Member

joined:Apr 13, 2001
votes: 0

My guess is this isn't the best forum to ask technical questions about Java in, but you got lucky this time.

File f = new File("C:/download/test.htm");
f.renameTo(new File("C:/download/test-rename.htm"));