How to read and write huge binary files

Tim Roberts timr at probo.com
Fri Jan 19 03:42:10 EST 2007


"Lad" <python at hope.cz> wrote:
>
>What is a good  way to read binary data from HUGE  file and write  it
>to another file?

How huge?  I regularly process 100-megabyte MPEG files in Python, both by
reading the whole thing in as a string, and by using "mmap" to map the file
into memory.
-- 
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.



More information about the Python-list mailing list