lua-users home
lua-l archive

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


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

On investigation

print(f:read("*n")  40
print(f:read("*n")  nil
print(f:read("*l")  astring

What is going on?