fgetl, textscan, and the file position indicator
Show older comments
Is a construct like this legal?
It doen't return any error, but the "file position indicator" is not advanced as it should. I read a text file CRLF for new line.
fid = fopen( ... );
str = fgetl( fid );
cac = textscan( fid, ... );
...
str = fgetl( fid );
cac = textscan( fid, ... );
fclose( fid )
Accepted Answer
More Answers (0)
Categories
Find more on Text Files in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!