[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Manual Errata: io.lines Documents Deprecated Format
- From: William Ahern <william@...>
- Date: Wed, 9 Aug 2017 11:32:48 -0700
The Lua 5.3 manual documents io.lines as using a default read format of "*l"
instead of "l".
The call io.lines() (with no file name) is equivalent to
io.input():lines("*l"); that is, it iterates over the lines of the default
input file. In this case it does not close the file when the loop ends.
-- https://www.lua.org/manual/5.3/manual.html#pdf-io.lines