ReadByte problems

Blitz3D Forums/Blitz3D Programming/ReadByte problems

The Forum Archive is locked. These are the original blitzbasic.com forums, kept so their posts can still be read and searched. No new topics, replies or edits can be made here. To join the conversation, head over to the Blitz3D+ forums.

ok well here is a simple example. To check it I am comparing the output on the screen with the contents of the test.jpg file in a hex editor. Everything is read correctly, except 00 (or "00000000") is read as 20 (or "00000020").

************************
filein = ReadFile("C:\test.jpg")

While Not Eof(filein)

read1 = ReadByte( filein )
Print(Hex$(read1))
waitkey()

wend
*************************