[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: C string as 'file' object
- From: steve donovan <steve.j.donovan@...>
- Date: Sat, 24 Mar 2012 15:04:45 +0200
On Sat, Mar 24, 2012 at 12:57 PM, Jeff Pohlmeyer
<yetanothergeek@gmail.com> wrote:
>> Is there an easy way to make a C string look like a read-only file object
>> (file:lines(), file:read(), file:seek())?
For the case of a Lua string, there's stringio:
http://stevedonovan.github.com/Penlight/api/modules/pl.stringio.html
steve d.