|MATLAB Function Reference|
Read line from file, discarding newline character
tline = fgetl(fid)
returns the next line of the file associated with the file identifier
fgetl encounters the end-of-file indicator, it returns
fopen for a complete description of
fgetl is intended for use with text files only.
The returned string t
line does not include the line terminator(s) with the text line. To obtain the line terminators, use
When reading character strings from files, pass the output of
fgetl to the MATLAB
native2unicode function to ensure that characters display correctly:
The example reads every line of the M-file
© 1994-2005 The MathWorks, Inc.