Purpose
 

CREATE_FILE creates a file.

Syntax
 

CREATE_FILE(<filepath>,[<DemandClear>])

Operation

<filepath> Full path to the file

< DemandClear>

1 – Clears file if it already exists

0 – Leaves file untouched

Remarks

Returns:

1 - File created

-1 - File cannot be created

The file is always created with Read and Write access. The path to the file is created if it does not exist.

Example

#RC = CREATE_FILE("C:\Program Files\Northgate\Exports\example.seq", "0")

Error codes are returned to the caller.

Comment on this topic

Topic ID: 520195