fgets
- :
line =fgets(fid)¶ - :
line =fgets(fid, nchar)¶ - :
[line, ending] =fgets(…)¶ Read a line from the file fid, including the terminating newline.
At most nchar characters are read when given. The optional second result is the line ending as doubles (
10for LF,[13 10]for CRLF), or empty when no terminator was read. If no more data is available the result is -1.