as the comment shows,for some reason cbf.tellg() returns 0.
I tried cbf.seekg(ios::ate) but no surprise i had the same result.
using python or octave i can easily open the file , so the problem doesn't seem to come from the file itself...
well that's it...thanks a lot in advance for your help!
edit:
if that helps the "0000 0000 0101 0000 ..." sequence above is the sequence of bits in the file , generated by a dynamic huffman algorithm....
thx again for your attention.