lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]




On Saturday, February 22, 2014, Enrico Colombini <erix@erix.it> wrote:
On 22/02/2014 13.44, Andrew Starks wrote:
Making something work in lua with file:read  and the "*n" option is very
simple and makes a nice lua 101 tutorial.

(just to avoid confuse readers: I guess you meant file:read(n))

--
  Enrico


Sorry. Yes. Also, a follow up thought:

If lines was deprecated, an option *could* be to add another modifier to read. Something like "read until a specified string of symbols or end of file." 

This may not be a perfect suggestion but perhaps it's along the lines of a better idea?