Rename the file represented by the given file object to the file represented by another file object.
Syntax
renameTo( file1 , file2 )
file1.renameTo( file2 )
Parameters
file1
|
the file object to be renamed.
|
file2
|
the file object to name it to.
|
Returns
boolean
|
true if the file was renamed.
false if the file could not be renamed.
|
Example
fh.renameTo( newName )
|