Function file::eof()

← Back to Class file



Module fileioClass file → eof()

Description

Check whether file pointer is at the end-of-file (EOF) or not

file::eof()


Parameters

There are no parameters.


Return Value


Usage Example

import fileio
 
f = file("data.txt", file_read)
 
while !f.eof()
    line = f.readln()
endwhile
 
f.close()