| MasterAsh (29) | |||
|
Hi! I'm trying to read a file byte per byte.The file contains "0000 0000 0101 0000..." the code i use is:
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. | |||
|
Last edited on
|
|||
| MasterAsh (29) | |
| ok i identified the problem.it was really stupid and i'm glad nobody wasted time on this post. | |
|
|
|