| MATLAB Function Reference | Search  Help Desk |
| fgetl | See Also |
Return the next line of a file as a string without line terminator(s)
line = fgetl(fid)
line = fgetl(fid)
returns the next line of the file with identifier fid. If fgetl encounters the end of a file, it returns -1. (See fopen for a complete description of fid.)
The returned string line does not include the line terminator(s) with the text line (to obtain the line terminator(s), use fgets).
fgets Return the next line of a file as a string with line terminator(s)