| MATLAB Function Reference | Search  Help Desk |
| fgetl | See Also |
Return the next line of a file as a string without line terminators
Syntax
line = fgetl(fid)
Description
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 terminators, use fgets.
See Also
fgets