Sun, 13 Sep 2009 22:22:47 +0300
Improvements
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