[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Strange io.read behaviour
- From: Sam Roberts <vieuxtech@...>
- Date: Mon, 22 Mar 2010 13:17:42 -0700
On Mon, Mar 22, 2010 at 1:07 PM, Tim Channon <tc@gpsl.net> wrote:
> The start of an ascii file contains
>
> 40<cr><lf>
> astring<cr><lf>
> ...
>
> Assuming f is an open file
>
> print(f:read("*n") 40
> print(f:read("*l") nothing
The above is returning a zero-length string. And if you call it again
you get "astring".
Sam