Copyright © tutorialspoint.com
Syntax
Definition and UsageRenames the file with OLDNAME to NEWNAME. Uses the system function rename( ), and so it will not rename files across file systems or volumes. If you want to copy or move a file, use the copy or move command supplied in the File::Copy module. Return Value
ExampleTry out following example: First create test file in /tmp directory and then use following code to change file name.
|
Copyright © tutorialspoint.com