I am writing a python script which looks at common computer files and examines them for similar bytes, words, double word\'s. Though I need/want to see the files in Hex, ande c
You can read a set number of bytes by passing an integer argument to read:
read
32bits = file.read(4)
You can seek to a position in the file using seek:
seek
file.seek(100) # Seeks to byte 100