Page 1 of 1

Posted: Tue Feb 12, 2002 2:30 pm
by BackupUser
Restored from previous forum. Originally posted by PB.

If I have an offset in hex, say $1000, how can I read the bytes from a binary
file at that offset? Say for example I need to read the first 10 bytes from
the offset of $1000 in an exe, how would I do it?


PB - Registered PureBasic Coder

Posted: Tue Feb 12, 2002 3:16 pm
by BackupUser
Restored from previous forum. Originally posted by Rings.

FileSeek(NewPosition)
Number.b = ReadByte()

Getting better with a little help from my friends....thx Siggi

Posted: Tue Feb 12, 2002 3:56 pm
by BackupUser
Restored from previous forum. Originally posted by PB.
FileSeek(NewPosition)
Number.b = ReadByte()
I can't believe I overlooked the ReadByte() command!


PB - Registered PureBasic Coder