MATLAB Function Reference    
feof

Test for end-of-file

Syntax

Description

eofstat = feof(fid) returns 1 if the end-of-file indicator for the file, fid, has been set, and 0 otherwise. (See fopen for a complete description of fid.)

The end-of-file indicator is set when there is no more input from the file.

See Also

fopen


  feather ferror