--@module filecache local filecache={} local cache={} function filecache.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 return filecache