[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
RENAME Rename a Disk File pp 96
Syntax: Rename (FileVar,String) ;
Type: File
Form: Procedure
Purpose: Rename file associated with FileVar to name specified by String.
Notes: Rename should never be used on an open file. The renamed file will
not have to be reassigned to FileVar. Any further operations on
FileVar will be done against the new file name.
----------------------------------------------------------------------------
Usage:
TYPE
FileType = String [80] ; { Record length of 80 }
VAR
FileVar : File of FileType ; { Set handle to this type }
BEGIN
Assign (FileVar,'C:FileName.Ext') ; { Assign name to handle }
Rename (FileVar,'C:TestName.Ext') ; { Rename handle to new name }
END.
See Also:
Assign
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson