This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
haas:fall2020:common:helpances:binaryfileandeof [2020/08/14 21:42] – wedge | haas:fall2020:common:helpances:binaryfileandeof [2020/08/14 21:43] (current) – wedge | ||
---|---|---|---|
Line 14: | Line 14: | ||
on the notion of some underlying flag being set when the EOF is encountered. This way, I don't have to bother interpreting whether this 0xFF is the critical " | on the notion of some underlying flag being set when the EOF is encountered. This way, I don't have to bother interpreting whether this 0xFF is the critical " | ||
- | <code> | + | <blockquote> |
- | > Because of this my file reading loop check would | + | Because of this my file reading loop check would never fail and continued to read values after the end of the file was reached. But once I changed the variable to an integer it recognized EOF and the check utility lit up nicely. Why is this? |
- | > never fail and continued to read values after | + | </blockquote> |
- | > the end of the file was reached. But once I | + | |
- | > changed the variable to an integer it recognized | + | |
- | > EOF and the check utility lit up nicely. Why is this? | + | |
- | > | + | |
- | </code> | + | |
I suspect you are playing with the symbol EOF? As in: | I suspect you are playing with the symbol EOF? As in: |