lua-users home
lua-l archive

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


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