Reading hex values from an ascii text file

I need to read an ascii text file that is populated with hex values that cannot exceed the size of an unsigned integer.

the file contains records with 6 fields in each record. But the data has no carriage returns or line feeds, just hex values separated by spaces.

I need to read the data into an array that is unsigned int hexArray[18096, 6];
the first need is to store the text representation of the hex value as an equivalent integer value. IE if the filehex value is AC6 I need to store 2758. I have other analysis that I need to do on the array after it is populated, I can do that part.

Can anyone help with code to accomplish this?

Thank You for your help
Topic archived. No new replies allowed.