I want to read in data from a binary file in 8 bit chunks. I can get the chunks using the "read" function, but I can not figure out how to show the 1's and 0's of the chunk as an output string.
Another thing I want to be able to do is count the number of 1's and 0's in this 8 bit chunk. I would like to do this with out first converting the chunk into a string like I am looking to do in the firt part of my question.
I have become vaguely familiar with pack and unpack, but after many hours of trying and countless searches on google, I can not figure this out.