// File (or directory) with old name
File file = new File("oldname");
// File (or directory) with new name
File file2 = new File("newname");
// Rename file (or directory)
boolean success = file.renameTo(file2);
if (!success) {
// File was not successfully renamed
}
e hënë, 25 qershor 2007
Abonohu te:
Posto komente (Atom)
Nuk ka komente:
Posto një koment