Re: Using the List and RenameTo methods
Posted By:
rahul_deshmukh
Posted On:
Thursday, June 3, 2004 06:09 AM
See this code :
File file=new File("d:\file.txt");
File file1 = new File("d:\file1.txt");
Now to rename file1.txt to file.txt you will use following code :
file1.renameTo(file);