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.)
status = fseek(fid, offset, origin)
status returned value that is 0 if the fseek operation is successful and -1 if it fails. If an error occurs, use the function ferror to get more information.
help上面说
The end-of-file indicator is set when the file position
indicator reaches the end of the file.
那么
程序运行到
fid=fopen('data\shujv.txt','r')
status=fseek(fid,0,'eof')
x=ftell(fid);
此时
indicator for the file fid has been set
那么
feof(fid) returns 1
但是为什么每次返回值都是0呀?