Skip to content

fgetl

io · scripts/io/fgetl.m

: tline = fgetl (fid)

Read one line from the open file fid, without the line ending.

Matches MATLAB R2026a: one input only; on end-of-file the result is -1. Empty lines become an empty character array. Both LF (10) and CRLF ([13 10]) terminators are stripped.