Welcome to WebmasterWorld Guest from 54.224.200.104

Forum Moderators: incrediBILL

Message Too Old, No Replies

File object in java

     

manjumurthy

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
thanx
manjumurthy
2:39 pm on July 30, 2001 (gmt 0)

Junior Member

10+ Year Member

joined:Apr 13, 2001
posts:96
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"));