io.lines do not close file on EOF #53

Closed
opened 2019-10-06 14:36:05 +00:00 by Enyby · 0 comments
Enyby commented 2019-10-06 14:36:05 +00:00 (Migrated from github.com)

https://www.lua.org/manual/5.2/manual.html#pdf-io.lines

When the iterator function detects the end of file, it returns nil (to finish the loop) and automatically closes the file.

https://www.lua.org/manual/5.2/manual.html#pdf-io.lines > When the iterator function detects the end of file, it returns nil (to finish the loop) **and automatically closes the file.**
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: open-autonomous-connection/luaj#53