Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local f = io.open("test.lua", "rb")
- local block = 16
- for bytes in f:lines(block) do
- for c in string.gmatch(bytes, ".")do
- io.write(string.format("%02X ", string.byte(c)))
- end
- io.write (string.rep(" ", block - string.len (bytes)))
- --io.write(" ", string.gsub(bytes, "%c", "\n"))
- io.write("\n")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement