lua-users home
lua-l archive

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


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.