things aren't stored in hex. As far as I'm aware hex was just a notation for programmers because it's more convenient than binary or base 10.
you would need to read the file in as binary, convert it to hex, let the programmer edit that, then convert back to binary and store it in the file.