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)

How do i move a file from one location to another using the File object in java


2:39 pm on Jul 30, 2001 (gmt 0)

10+ Year Member

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"));


Featured Threads

Hot Threads This Week

Hot Threads This Month