CLOSE Function

Closes an open file.

Category: External File
Returned data type: Integer
Note: The returned value is a Boolean value where 1= success and 0 = error.

Syntax

fileobject.CLOSE

Details

The CLOSE method closes the file that is currently open file (which was opened by using a fileobject.OPEN call) is closed.

Example

file myfile
if ( myfile.open("data.txt") ) then ...
rc = myfile.close()