file.isOpen()



This method indicates whether or not the file is open.

Return Value

A Boolean value indicating whether or not the file is open.

Example

Close file, if open
if (myfile.isOpen()) myfile.close();

RPG Equivalent

%OPEN()

Requirements

This API requires the Profound.js Connector module.