Navigation

Operators and Keywords

Function List:

C++ API

: nlines = fskipl (fid)
: nlines = fskipl (fid, count)
: nlines = fskipl (fid, Inf)

Read and skip count lines from the file specified by the file descriptor fid.

fskipl discards characters until an end-of-line is encountered exactly count-times, or until the end-of-file marker is found.

If count is omitted, it defaults to 1. count may also be Inf, in which case lines are skipped until the end of the file. This form is suitable for counting the number of lines in a file.

Returns the number of lines skipped (end-of-line sequences encountered).

See also: fgetl, fgets, fscanf, fopen.

Package: octave