Rename a file

Renames the file new.txt to old.txt

String oldFilename = "old.txt"
String newFilename = "new.txt"

new File(oldFilename).renameTo(new File(newFilename))