|MATLAB Function Reference|
Test for end-of-file
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
The end-of-file indicator is set when there is no more input from the file.