you might be doing extra work then needed all you need to do is call method renameTo on File object. public class Test { public static void main(String[] args) { File f = new File("c:/dude.txt"); File newObj = new File("c:/d.txt"); f.renameTo(newObj); } }
Val SCJP <BR>going for SCJD
When all four tires fall off your canoe, how many tiny ads does it take to build a doghouse?
Gift giving made easy with the permaculture playing cards