rename
rename — renames a file.
rename (filename, new_name)
filenameThe name of a file on disk.
new_nameThe new name for the file.
This function makes an operating system call rename a file on disk. The exact behavior of this function depends on the renaming facility for the operating system.
Gamma>rename("myfile.dat","x/myrenamedfile.dat");tGamma>rename("x/myrenamedfile.dat","myfile.dat");tGamma>