Rename procedure changes the name of the desired file.
Changes the name of file associated with the file variable by calling the
AssignFile procedure. The specified file must be closed before it is renamed.
The procedure has the following parameters:
Specifies the file variable, which is associated with the desired file by calling the
Specifies the variable that holds the new file name.
After executing the
Rename procedure, all of the operations work with the file that has the new name.