A script-enabled browser is required for this page to function properly.

TEXT_IO.IS_OPEN built-in function

This function checks to see if the specified file is currently open.

Syntax


FUNCTION TEXT_IO.IS_OPEN
(file file_type)
RETURN BOOLEAN;

Parameters

Parameter

Description

file

A variable that specifies the file to check.

Returns

TRUE or FALSE.

Example


 /*
 ** Determine if the output file is open. If so, 
 ** then close it.
 */
 IF TEXT_IO.IS_OPEN(out_file) THEN
  TEXT_IO.FCLOSE(out_file)

See also

About the TEXT_IO built-in package

TEXT_IO built-in package