- 4.67.2.69. -
Table of Contents
4. Standard Units
4.67. System - Built-in routines
4.67.2. System Unit Procedures and Functions
4.67.2.69. Rename procedure
4.67.2.69. Rename procedure
Targets: MS-DOS, OS/2, Win32
System Unit
Renames an external file.
Declaration:
procedure Rename(var F; NewName: String);
Remarks:
Rename must not be used on an open file.
All operations after a successful call to Rename
use the new name. With {$I-}, IOResult
returns zero if Rename was successful, otherwise
IOResult contains an error number.
- 4.67.2.69. -