Skip to content

FileHandle.isOpen

JoeStrout edited this page Apr 29, 2026 · 2 revisions

Get whether the file handle is still open

Parameters

None.

Return value

Condition Return Value
(always) number

Notes

Example

import "file"
fh = file.open("data.txt", "r")
if fh != null and fh.isOpen then
    print "file is open"
    fh.close
end if

Clone this wiki locally