file.rename

Syntax

b = file.rename(soldname,snewname)

Renames an existing file.

An existing file with name soldname is changed to have the name snewname.

Returns:b- true if the rename was successful.
Arguments:soldname - The name of the existing file snewname - The name of the file afterwards, if successful