lua-users home
lua-l archive

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

> From: lhf
> >From Mon Jun 22 17:41:18 1998
> >
> >What is the best way to save/restore a table to/from disk in
> >version 3.1?  I would prefer to do this in C if possible.
> The best way depends on the application.
> But see test/save.lua in the distribution.

Ok, I looked at the code.  That explains how to save state.  And then to
restore state, I'll lua_dostring the output from dump.lua back into Lua.
It's not a C solution, but it'll work.

Thanks, lhf.