Create

File management function.

The Create function creates a file.

Syntax

Create(<filename>)
or
ret=Create(<filename>)

Parameters

<filename>, string, name of the file to be created. If the file already exists, it is deleted and recreated.

Return value

Ret, numeric return code. When the file is created successfully, the function returns 0, otherwise use this return code for Error Handling.

Example

 

var = Create("\\Server\C\my directory\my file.txt")