FreewareFire
Active member
- Joined
- May 23, 2003
- Messages
- 28
Hi guys,
ive a little problem - i use the CFile method to read a binary file.
My problem is that i need to read the first byte of the binary file and check if the first bit is set!
For example the file contains in hex 8020, i need to know, if the bit of the 80 is set... only with CFile; no fopen or something else...
So the thing is, read in the first byte and convert it from char to int and check...
could someone give me a little code for?
So many Thanks for!
ive a little problem - i use the CFile method to read a binary file.
My problem is that i need to read the first byte of the binary file and check if the first bit is set!
For example the file contains in hex 8020, i need to know, if the bit of the 80 is set... only with CFile; no fopen or something else...
So the thing is, read in the first byte and convert it from char to int and check...
could someone give me a little code for?
So many Thanks for!
