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 )
Best Answer