-
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