[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: fgets() in read_line in liolib.c, C string to \0, LUAL_BUFFERSIZE
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Mon, 2 Apr 2001 09:54:50 -0300 (EST)
Like you said, the problem is probably the strlen in read_line.
It should be in the docs.
The "idiomatic" way to handle files in Lua is to read it all into memory and
then parse the contents. It's also way faster than reading lines.