title: How do I count the zeros and ones in a file?
body: <p>Given a file (binary or textual), what is the fastest or most elegant way in C++ to count the ones and zeros in the binary representation of that file? </p>