"Dany" <da************ **@yahoo.fr> wrote in message
news:bf******** **@news-reader4.wanadoo .fr...
Well I can't proceed to any convertion because I havn't number or letter
to work with. I only have some box, smiley and other weird character
"Allan Bruce" <ab****@TAKEAWA Ycsd.abdn.ac.uk > a écrit dans le message de
news:bf******** **@news.abdn.ac .uk...
"Dany" <da************ **@yahoo.fr> wrote in message
news:bf******** **@news-reader5.wanadoo .fr... Hi
When I open an Hexa file I have some weird char like when I open it
with Notepad. I want to open it in a readeable form (ex: "FF25AB") like
with Ultra edit.
Thanks
regards,
Dany
If you want it to look like ultra-edit then you would have to ouptut the
characters yourself with some kind of conversion to go from 255 to FF.
What UltraEdit does is loads in the binary file and then does this conversion
to (slightly more) human readable form. You will not get this in Notepad
without the method I suggested above
Allan
I dont understand, if you mean you have a file which is in this mode at the
moment, then I suggest you read the file in a c++ program in binary mode.
Perhaps storing the contents as an array of unsigned chars. Then carry out
a conversion on each one.
Each unsigned char will be 0-255 which if you divide by 16 will get the
first hex digit (e.g. if it is 10 then the hex digit will be A).
Now if you subtract the (first digit)*16 from the unsigned char, you will be
left with the second digit. Now you can output this in a stream of hex
characters just like ultra-edit
Allan