Utilities.FileCreate Method

Applies to TestComplete 12.60, last modified on September 17, 2018
This method is obsolete. See the Remarks section below.

Description

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

Declaration

Utilities.FileCreate(FileName)

FileName [in]    Required    String    
Result Integer

Applies To

The method is applied to the following object:

Parameters

The method has the following parameter:

FileName

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).

Remarks

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

See Also

aqFile.Create Method
aqFileSystem.Exists Method
aqFile.Exists Method
aqFileSystem.FindFiles Method
aqFile.OpenBinaryFile Method
aqFile.OpenTextFile Method
Close Method
Close Method

Highlight search results