lua-users home
lua-l archive

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

On Fri, Feb 21, 2014 at 10:14 AM, Dirk Laurie <> wrote:
> For me, only text files have lines

i concur.

i would even accept if io.lines() raised an error if called with a
file that wasn't opened in text mode.

of course, i much prefer the contract to be clearly stated "due to the
underlying old C implementation, embedded control characters can make
it return wrong results.  if you need to read binary data, use