lua-users home
lua-l archive

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


when reach the end of the file, function io_readline return no value, not nil.
so that the sentence in the reference manual is not correct:
"When the iterator function detects the end of file, it returns nil (to finish the loop) and automatically closes the file."