forked from redo/BlockLua
Compare commits
3 Commits
6c8b2ce0d3
...
22f7d00894
| Author | SHA1 | Date | |
|---|---|---|---|
| 22f7d00894 | |||
| c9e7a9d672 | |||
| a969d5365d |
@@ -134,7 +134,7 @@ end
|
|||||||
|
|
||||||
---@diagnostic disable-next-line: duplicate-set-field
|
---@diagnostic disable-next-line: duplicate-set-field
|
||||||
function io.lines(fn)
|
function io.lines(fn)
|
||||||
local fi, err, fn2 = io.open(fn, nil, 2)
|
local fi, err, fn2 = io.open(fn, 'r', 2)
|
||||||
if not fi then error('Error opening file \''..fn2..'\': '..err, 2) end
|
if not fi then error('Error opening file \''..fn2..'\': '..err, 2) end
|
||||||
return fi:lines()
|
return fi:lines()
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user