|
|
Re: Number of line in a text file
Posted:
Jan 23, 2013 2:34 AM
|
|
On Thursday, November 2, 2006 2:26:12 AM UTC+8, Benoît Valley wrote: > I need to determine the number of line in a text file. > > Is there a more efficient way that using getl in a while loop ? > > Thanks, > Benoît
nrows = numel(cell2mat(textscan(fid,'%1c%*[^\n]')))
|
|