[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: file:read with a maximum line length
- From: Rena <hyperhacker@...>
- Date: Sat, 4 May 2013 17:22:03 -0400
I was just pondering file:read() with the '*l' and '*L' formats and thinking about the possibility of getting caught up on extremely long lines. I think it might be useful to be able to specify a maximum line length. file:read() can't accept any additional parameters though, since it's already a vararg function. Maybe the maximum length could be specified in the format string, e.g. '*l:255'?
Sent from my Game Boy.