User Tools

Site Tools


haas:fall2020:common:helpances:binaryfileandeof

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
haas:fall2020:common:helpances:binaryfileandeof [2020/08/14 21:42] wedgehaas: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 "droids I'm looking for", I let the stdio subsystem do it for me. 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 "droids I'm looking for", I let the stdio subsystem do it for me.
  
-<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:
haas/fall2020/common/helpances/binaryfileandeof.1597441373.txt.gz · Last modified: 2020/08/14 21:42 by wedge