AssignFile Procedure

Applies to TestComplete 15.69, last modified on November 13, 2024

The AssignFile procedure associates the specified variable with a file.

Declaration

AssignFile(FileVarFileName) Parameters
FileVar [in] Required Variant
FileName [in] Required String
Result     None  

Description

Associates a file variable with the name of a file. All of the operations performed with this variable are performed with the specified file as well. After calling AssignFile, the file variable remains associated with the file until the file variable is closed. The AssignFile procedure cannot be used with a file variable that is already open.

Parameters

The procedure has the following parameters:

FileVar

Specifies the file variable, which is associated with the desired file.

FileName

Specifies the variable which holds the name of the desired file.

See Also

DelphiScript - List of Supported Routines and Variables
Append
CloseFile
Reset
Rewrite

Highlight search results