line = fgetl(fid)
line = fgetl(fid) returns the next line of the file with identifier fid. line is a MATLAB string that does not include the newline and carriage return associated with the text line (to obtain those characters, use fgets). If fgetl encounters an end-of-file indicator, it returns -1.
fgetl is intended for use with text files only. Given a binary file with no newline characters, fgetl may require long execution time.
fgets
(c) Copyright 1994 by The MathWorks, Inc.