Skip to content

Instantly share code, notes, and snippets.

View SpaceBeeGaming's full-sized avatar

SpaceBeeGaming SpaceBeeGaming

View GitHub Profile
@SpaceBeeGaming
SpaceBeeGaming / tableToFile.lua
Created November 1, 2018 11:08
Table saver/loader for OpenComputers Minecraft mod.
local serialization = require("serialization")
local tableToFile = {}
function tableToFile.load(location)
--returns a table stored in a file.
local tableFile = assert(io.open(location))
return serialization.unserialize(tableFile:read("*all"))
end