Clib Rename File Method
The Clib Rename File method renames a file. It returns one of the following values:
If successful, then it returns the following value:
0
If not successful, then it returns the following value:
Negative 1
Format
Clib.rename(oldName, newName)
The following table describes the arguments for the Clib Rename File method.
Argument | Description |
---|---|
oldName |
A string that contains the name of the file that this method renames. This name can be an absolute file name or a relative file name. |
newName |
A string that contains the new file name. |