lua-users home
lua-l archive

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


>it won't *break* anything for libio to allow nulls in a string on *l

Yes, but it will slow down the processing of files line by line, which is by
far more common with text files that do not contain nulls.
I suggest that you add a new function "readuntil(c)" that reads everything until
it finds a byte "c", or add a new option "*Uc" to "read".
--lhf