Skip to content

Instantly share code, notes, and snippets.

View UV-Husky's full-sized avatar
🐕

UV-Husky

🐕
View GitHub Profile
@UV-Husky
UV-Husky / 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