Re: io:lines() and 0円
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: io:lines() and 0円
- From: Dirk Laurie <dirk.laurie@...>
- Date: 2014年2月21日 17:28:34 +0200
2014年02月21日 17:23 GMT+02:00 Javier Guerra Giraldez <javier@guerrag.com>:
> On Fri, Feb 21, 2014 at 10:14 AM, Dirk Laurie <dirk.laurie@gmail.com> 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
> file:read()"
In fact: `data = file:read"*a"; file:close()`. We're not living in the era
of punched cards and tape drives and 64K main memory any more.
- References:
- Re: io:lines() and 0円, René Rebe
- Re: io:lines() and 0円, René Rebe
- Re: io:lines() and 0円, Sean Conner
- Re: io:lines() and 0円, Francisco Olarte
- Re: io:lines() and 0円, Enrico Colombini
- Re: io:lines() and 0円, Francisco Olarte
- Re: io:lines() and 0円, Sean Conner
- Re: io:lines() and 0円, Francisco Olarte
- Re: io:lines() and 0円, Sean Conner
- Re: io:lines() and 0円, Francisco Olarte
- Re: io:lines() and 0円, Roberto Ierusalimschy
- Re: io:lines() and 0円, René Rebe
- Re: io:lines() and 0円, steve donovan
- Re: io:lines() and 0円, René Rebe
- Re: io:lines() and 0円, Andrew Starks
- Re: io:lines() and 0円, Dirk Laurie
- Re: io:lines() and 0円, Javier Guerra Giraldez