lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Like you said, the problem is probably the strlen in read_line.
It should be in the docs.

The "idiomatic" way to handle files in Lua is to read it all into memory and
then parse the contents. It's also way faster than reading lines.
--lhf