FCLOSE

Concept Link IconSee also Concept Link IconExample

Close the specified file.

WebVue support - Yes.

Before using any of the file management instructions, except FSTAT, RENAME, UNLINK, FILETOBUF or BUFTOFILE, you must first open the file using an FOPEN instruction.

Before any program including the FOPEN instruction ends, it must execute an FCLOSE instruction.

Syntax

IntVal = FCLOSE(Filename);

Return type: INTEGER.

Argument

Meaning

Filename

The name, including any path, of the file to be closed. Type STR.
If executed in a WebVue session context this instruction is processed by the computer that hosts the web back end and the referenced file is on that computer.

Execution

Close the specified file.
Return: 1 if successful, else 0.

Example

i1 = FCLOSE("histo.fil");

For further examples, select the Example link above.