[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: file:read with a maximum line length
- From: Petite Abeille <petite.abeille@...>
- Date: Sat, 4 May 2013 23:42:53 +0200
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.