lua-users home
lua-l archive

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



On Aug 24, 2009, at 10:47 PM, Michal Kolodziejczyk wrote:

Firs of all, I am wondering why it works ion the first place. According
to the manual, you need io.lines(filename), not io.lines(filehandle)!
If it works with filehandle, it is not documented, so the behaviour in
unexpected.

io.lines( filehandle ) == filehandle:lines()

http://www.lua.org/manual/5.1/manual.html#pdf-file:lines