how to read hexadecimal data

If somebody can tell me how to read hexadecimal and octal data.
With Regards,
Matanuragi
Read it from where? keyboard? File? socket? What do you want to do with it after you have read it in?
We need more information
Last edited on
Actualy Iwant to write a program to read hexadecimal and octal data ,giving its decimal form as output
How is the input formatted. As bytes?
01 7F 13 AB A5 0C ...

or as words?
017F 13AB A50C ...

big endian?
7F01 AB13 0CA5 ...

prefixes?
0x01 0x7F 0x13 0xAB ...

postfixes?
01h 7Fh 13h ABh ...

some (unknown) combination of the above?

(The more specifically the input is formatted, the easier it is to read.)
Topic archived. No new replies allowed.