Mon, 14 Sep 2009 00:16:13 +0300
fixes
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