<< fclose | Stream manager | ferror >> |
status = feof(fid) |
a file descriptor
an integer value: 1 if file is closed or 0 if not.
feof checks if end of file has been reached.
fid = fopen([nelsonroot(), '/etc/startup.m'], 'rt');
feof(fid)
while ~feof(fid)
tline = fgetl(fid);
disp(tline);
end
feof(fid)
fclose(fid);
Version | Description |
---|---|
1.0.0 | initial version |
Allan CORNET