local fileutil = {} function fileutil.readBytes(path) local file = assert(io.open(path, "rb")) local bytes = {} repeat local s = file:read(4096) for c in (s or ""):gmatch(".") do table.insert(bytes, c:byte()) end until not s file:close() return bytes end return fileutil