rename

rename(NAME1, NAME2)

Renames flle named NAME1to NAME2. On error, it returns nil , plus a string describing the error.