reads a file rowise into a cellstr
Lines are separated by the line feed character only and a trailing carriage return is removed. This is exactly how txt2mat counts lines. Note that fgetl in contrast breaks at a stray carriage return as well - a file with CRLF line breaks that contains an additional CR (as written by some EDAX .ang exports) would then appear to have more lines here than when the very same file is read by txt2mat, and the header line count handed over to it would be too large.
Syntax
str = file2cell(filename,maxline)