table.save

About table.save

Type: Other
License: MIT License
Supported platforms:

       

Categories:
  • File Manipulations

Table.save ads two additional methods to table object:

  • table.save(table, key)
  • table.load(key)


It provides an easy way to persistent store the Lua table and also a way to load the data from files into Lua table

Download table.save

Developed by: Gideros

Sharing is caring:

Code example:

local t = {}
t.a = 1
t.b = 2
t.c = {}
table.save(t, "test.tbl")

local t2 = table.load( "test.tbl" )