How to copy a binary file?

Darrell news at dorb.com
Wed Jan 19 23:12:52 EST 2000


> What is the preferred way of copying a binary file?

shutil.copyfile(src,dest)
or
open(dest,'w+b').write(open(src,'r+b').read())

--
--Darrell





More information about the Python-list mailing list