[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: RE: Save / Restore Tables
- From: "Ashley Fryer" <ashley@...>
- Date: Mon, 22 Jun 1998 17:25:50 -0700
> From: lhf
> >From email@example.com 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.