[Tutor] Read-ahead for large fixed-width binary files?

Kent Johnson kent37 at tds.net
Sun Nov 18 05:14:17 CET 2007

Marc Tompkins wrote:
> My question is this: does anybody know of an equivalent to
> "readlines(sizehint)" for non-delimited, binary files?  I've Googled
> and Googled until I'm groggy, but I don't seem to find what I want.

Have you tried specifying a buffer size in the open() call?


More information about the Tutor mailing list