My point is to make a program that could read from given file byte by byte.. somehow it turned out for me not to be as easy so i simplified my code till it became the fraction below. The thing is that my ifstream object stops reading at some point and returns just 0xFF bytes until the end of the reading. Most probably I just don't properly understand the function of this stream. In the case you saw where is the problem, please let me know, you would probably save at least one day of my life.thx
I tried to open it as binary, but already the first byte threw failbit and eofbit. When I removed that ios::binary ... flag? it worked for that incomplete part again. Btw about the speed I thought there is automaticaly initialized some filebuffer.. or do I need to create some explicitly?