File:Lines

From GiderosMobile
Revision as of 11:04, 23 August 2018 by Hgy29 (talk | contribs) (Created page with "__NOTOC__ '''Available since:''' Gideros 2011.6<br/> === Description === Returns an iterator function that, each time it is called, returns a new line from the file. Therefore...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Available since: Gideros 2011.6

Description

Returns an iterator function that, each time it is called, returns a new line from the file. Therefore, the construction

    `for line in file:lines() do body end`
will iterate over all lines of the file. (Unlike io.lines, this function does not close the file when the loop ends.)
(function), = file:lines()

Returns (function) iterator function

There are no pages that use this file.