I am currently parsing a file using the following scheme.
fmt = '%s%s';opt = {'Delimiter','='};[fid,msg]=fopen(file,'rt');assert(fid>=3,msg);C = textscan(fid,fmt,opt{:});fclose(fid);
However, this is unable to ignore comments. If the file I am parsing has some commented lines, how can I skip those?
Thanks!
Best Answer