Utilities.FileCreate Method

Applies to TestComplete 15.10, last modified on December 01, 2021
This method is obsolete. See the Remarks section below.


Use the Utilities.FileCreate method to create a new file whose name and path are specified by the FileName parameter.



FileName [in]    Required    String    
Result Integer

Applies To

The method is applied to the following object:


The method has the following parameter:


Specifies the name and path of the file to be created.

Result Value

If the file has been created successfully, the function returns the file handle. Otherwise, it returns -1.

For DelphiScript: The resultant file handle can be used only by file management routines provided by the Utilities object (for example, by FileWrite or FileRead). It cannot be used with file management routines provided by the DelphiScript engine (these functions are listed in the DelphiScript Routines topic).


This method is obsolete. It is supported for backward compatibility only. To create a file, use the aqFile.Create method.

See Also

Create Method
Exists Method
Exists Method
FindFiles Method
OpenBinaryFile Method
OpenTextFile Method
Close Method
Close Method

Highlight search results