[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: file:read with a maximum line length
- From: Coda Highland <chighland@...>
- Date: Sat, 4 May 2013 14:55:54 -0700
On Sat, May 4, 2013 at 2:42 PM, Petite Abeille <email@example.com> wrote:
> On May 4, 2013, at 11:22 PM, Rena <firstname.lastname@example.org> wrote:
>> Maybe the maximum length could be specified
>> in the format string, e.g. '*l:255'?
> What about just spell it out to start with:
> • number: reads a string with up to this number of bytes, returning nil on end of file. If number is zero, it reads nothing and returns an empty string, or nil on end of file.
The problem with that, little bee, is that it stops reading on EOF,
not EOL, which was the request.