FileIsEOF
Determines whether the end of the file has been reached while reading it.
Method Signature
Arguments
Argument
Type
Required
Description
Default
file
any
true
The currently open file object
Examples
Simple usage syntax
Call fileIsEOF on a file object and save the result to a variable.
Using fileIsEOF to loop over all lines of a text file
Simplified example of using fileIsEOF to determine when all lines have been read from a file. Error handling omitted for clarity.
Additional Examples
Related
Last updated
Was this helpful?