Ludobits 6.9.0
NEW: ludobits.m.savetable has new functionality to save and load using both sys.* and io.* (w. json encoding)
-- load file using sys.load() (or create file if it doesn't exist)
local data = savetable.load(filename, "sys") -- or "io" for use of io.open and io.read
-- update table value
data.foo = "bar"
-- save table using sys.save()
savetable.save(data)
And:
local data = { foo = "bar" }
savetable.save(data, filename, "io") -- or "sys" for use of sys.save