This might sound odd, but my issue is that I have a text string of hex values from a text file, like so:
"0x0f, 0x40, 0xff, ...."
I have stored them in an array split by the delimiters, but what I now need to do is have a byte array of what thay are in hex:
stringArray[0] = "0x0f";
byteArray[0] = 0x0f;
How do I do this (the user can load the text file, so I don't know what the values are), is there some sort of arithmetic I can use?