Liquid UI - WS Reference Library

closefile()


Purpose

With closefile(), you can close an opened file.

Once a file has been read, you can apply the closefile() command to close the file.


Syntax

closefile("filename");


Properties

filename: name of the file


Options

The closefile() command does not take any options.


Example

In the following example, we will close the file used in the openfile example:

closefile("file2.txt");

The file is now closed for reading or editing.