pinkfloydhomer at gmail.com wrote: > I want to scan a file byte for byte for occurences of the the four byte > pattern 0x00000100. data = sys.stdin.read() print data.count('\x00\x00\x01\x00') Kent