[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Is there a stringtext module on luarocks?
- From: Daurnimator <quae@...>
- Date: Fri, 17 Feb 2017 17:26:37 +1100
On 17 February 2017 at 17:14, Dirk Laurie <email@example.com> wrote:
> Before rolling my own: is there a module on luarocks that makes a string
> look like a text file?
> I.e. supporting methods like "lines", "read" and "seek"?
Use io.tmpfile. i.e.
local file = io.tmpfile()