is closed

operator

Return type: Switch
Returns:       True if the stream is closed, false otherwise. Replacing is with isnt will reverse the results.

Syntax
stream-name indexer? (is | isnt) closed


Purpose

One type of stream test to check for the state of a stream to determine whether it is closed.

A stream is closed if the stream has been opened or reopened, and is now closed.

A stream must be closed to be used in a "%g" format item or in a string expression.

Related Syntax