Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Text Hex to Binary Hex conversion
- hexcode = IO.binread("hex.txt")
- IO.binwrite("output.bin",hexcode.split("-").each.inject("") { |out,n| out << n.to_i(16).chr })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement