Something went wrong. Try again.
quick and dirty pure lua webassembly interpreter
Something went wrong. Try again.
1234567891011121314151617local 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 bytesend
return fileutil