lek_70
Feb 3rd, 2002, 02:34 AM
I read the binary code of an file with _open(). The data read to the buffer with _read(). I need to translate this constant char[] to hex value, what function can I use??
eg: data in buffer buff[0]= ef, buff[1]=01
what I need is at the end I can get a long value 0xef01, how to make it??
Or there is other function to read binary file where the output is store in integer value? I am using visual studio C++ 6.0. Thanks.
eg: data in buffer buff[0]= ef, buff[1]=01
what I need is at the end I can get a long value 0xef01, how to make it??
Or there is other function to read binary file where the output is store in integer value? I am using visual studio C++ 6.0. Thanks.