lua-users home
lua-l archive

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


> On 22/10/2013 07:51, Jose Torre-Bueno wrote:
> >fh:read("*l")  will apparently not return more than 1024 char.  If there are more it rolls over and returns a fragment from the end of the line.
> 
> It works correctly for me with lines of any length (provided there
> is enough memory and the line does not contain '\0' characters).

It is suposed to work correctly for any length. (About the '\0', when
reading lines we are assuming the file is a text file, so the
kind of control characters it can contain is restricted.)

-- Roberto