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.