Procedure Rename (Var F : Any Filetype; Const S : String) ;
Rename changes the name of the assigned file F to S. F must be assigned, but not opened.
A run-time error will be generated if F isn't assigned, or doesn't exist.
Program Example77; { Program to demonstrate the Rename function. } Var F : Text; begin Assign (F,paramstr(1)); Rename (F,paramstr(2)); end.