lua-users home
lua-l archive

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


Markus Huber wrote:

It seems to be impossible to detect if read('line*') stopped on an
newline or fileend.
...
Ok I can program also an read(buffersize) _without *line_ and then
process this buffer in lines using gsub. But I feel very uncomfortable
becaus the end can be found in buffer, not found in buffer or
truncated due buffering... :-(

also consider "abc\f", "abc\n\f"
looks like a job for filters....

Adrian