Name

Assign Procedure

Syntax

procedure Assign(var F: File; const FileName: string);
procedure Assign(var F: TextFile; const FileName: string);

Description

The Assign procedure does the same thing as AssignFile, but you should use AssignFile in new code. Assign is a method name that is often used in Delphi, and the two names can result in confusion. Assign is not a real procedure.

See Also

AssignFile Procedure

Get Delphi in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.