lua-users home
lua-l archive

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


Geoff Leyland wrote:
Thanks Gary,

I hadn't really thought of that. I'm copying a "read-only" data file to a tmpname before I muck with it so I was thinking in shell operations.

If read/write might be slow, then os.execute's fine. The data might be tens or low hundreds of MB.

You could also use coroutines:
http://www.lua.org/pil/9.2.html

Regards,
miko