Bit comparison on binary files

Hi

I am trying to compare two binary files in order to find out how many bits differ between the two files. I dont know how to reference file 'bits' in order to perform the comparison however, and i cannot find much information online. Can anybody give me some pointers on how to start or point me towards some helpful information?

Thanks

[359 byte] By [deardiona] at [2007-11-27 9:27:18]
# 1
Read the files in bytes.XOR the corresponding bytes. Only bits that differ will be 1.AND with 0x01 to see if the low order bit is 1. Shift right and repeat for the rest of the bits.
jverda at 2007-7-12 22:28:36 > top of Java-index,Java Essentials,Java Programming...
# 2
FYI: http://forums.devshed.com/java-help-9/file-bit-comparison-456806.html~
yawmarka at 2007-7-12 22:28:36 > top of Java-index,Java Essentials,Java Programming...
# 3
Thanks jverd
deardiona at 2007-7-12 22:28:36 > top of Java-index,Java Essentials,Java Programming...