March 2000
Intermediate to advanced
576 pages
18h 13m
English
Rename Procedure
procedure Rename(var F: File; const NewName: string); procedure Rename(var F: TextFile; const NewName: string);
The Rename procedure renames a file. You must call
AssignFile first to assign the current filename.
If the file cannot be renamed, the Windows error code is reported as
an I/O
error.
| AssignFile Procedure, Erase Procedure, File Keyword, IOResult Function, TextFile Type |
Read now
Unlock full access