Sun, 07 May 2017 20:02:53 +0100
5.3 updates
module("filecache", package.seeall) local cache={} function get(file) if not cache[file] then local f=io.openX(file, "r") cache[file]=f:read('*a') f:close() end return cache[file] end