lua-users home
lua-l archive

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


Hi Dirk,

> Or alternatively, is there a way to unread a line when you realize
> it's not meant for the current group?

You can use fh:seek() to get the position before reading and then set
to that position after reading, so the next reading operation starts
there.

Using your own buffer is likely to be noticeably faster if you need to
read and seek many times.

Paul.