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

TEXT_IO.Is_Open

Description

Checks to see if the specified file is currently open.

Syntax


FUNCTION Text_IO.Is_Open
   (file file_type)
RETURN BOOLEAN;

Parameters

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);