On Jun 8, 2:07 am, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote:
>> ... > > What has the searching to do with the reading? 10MB easily fit into the > main memory of a decent PC, so just do > > contents = open("file").read() # yes I know I should close the file... > > print contents.find('\x0c') > > Diez Better make that 'open("file", "rb"). -- http://mail.python.org/mailman/listinfo/python-list