Skip to content

FileHandle.atEnd

JoeStrout edited this page Apr 29, 2026 · 2 revisions

Get whether the file position is at the end of the file

Parameters

None.

Return value

Condition Return Value
(always) number

Notes

Example

import "file"
fh = file.open("data.txt", "r")
while not fh.atEnd
    print fh.readLine
end while
fh.close

Clone this wiki locally