[next] [prev] [prev-tail] [tail] [up]

#### Rename

Declaration:
  Procedure Rename (Var F : Any Filetype; Const S : String);
Description:
  Rename changes the name of the assigned file F to S. F must be assigned, but not opened.
Errors:
  Depending on the state of the {$I} switch, a runtime error can be generated if there is an error. In the {$I-} state, use IOResult to check for errors.
See also:
  Erase (487)

Listing: refex/ex77.pp

Program Example77;
{ Program to demonstrate the Rename function. }
Var F : Text;
begin
Assign (F,paramstr(1));
Rename (F,paramstr(2));
end.

[next] [prev] [prev-tail] [front] [up]