Either readint8 or readuint8
10 years. Crikey.
Just went through my code and replaced Read/Write Long , short and byte with the named equivalents.
Bring on the 64 bit compiler!
Stupid question:
why bother to use Read/Write 8 bits (vs Read/Write 32 or 64 bits) ?
Space ? Everyone told me there is plenty (except in the 1GB RAM Raspberry Pi)
[quote]Stupid question:
why bother to use Read/Write 8 bits (vs Read/Write 32 or 64 bits) ?[/quote]
If you have full control of the file format, reasonable question.
But to read a binary file that uses this storage method, sometimes you need this.
Especially if reading a file generated by an older app, and you need to retain compatibility.
Without it, you would perhaps read a 32bit integer, then have to extract each byte by some other method after it is in memory.
worked fine . . . thanks.
Jeff: I forgot Legacy code/files.
I had new software / new files in mind.