hey all,
If my machine is a different endianess from the file I'm reading, how do I go about switching the bytes?
Ex:
machine = little endian
file = big endian
file
0001
If i read this file normally, as an unsigned int, then I will come up with the value 4, because it will read it as 0100. I...
Hi,
I need help on an algorithm that will help me print out memory addresses per line.
It will be up to 7 hex digits.
So it will basically print out...
0000000
0000010
0000020
etc
00000f0
0000100
all the way to
fffffff
thanks,
Jon
hi,
I'm trying to read a binary file 1 byte at a time using the get() function. I am doing this in a while loop, and supposed the file is ABC. The program runs through the loop four times instead of only 3. How can I fix this so that it ends after it reads the C ? I'm currently using...
Hi all,
How can I convert a character to a hexidecimal, then parse each.
For example, after it is converted to say... 1E, how can I put 1 into a variable and E into another?
Thank you
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.