David Rasmussen wrote: > None of the solutions presented in this thread is nearly as fast as the > > print file("filename", "rb").read().count("\x00\x00\x01\x00") Have you already timed Scott David Daniels' approach with a /large/ blocksize? It looks promising.
Peter -- http://mail.python.org/mailman/listinfo/python-list