Re: binary file parsing in C++

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 11-dec-03, at 0:20, Justin Findlay wrote:
I am perplexed at what is happening here. This is a simple script that
reads a file one byte at a time, and writes it to another file one byte at
a time, but somehow there is an extra character at the end of the output
file.

end-of-file only gets set after you try to read past the end of the file,
not when you are _at_ the end of the file.



Segher



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux