Last active
December 12, 2015 14:09
-
-
Save chirag-v/4782985 to your computer and use it in GitHub Desktop.
copying content of file into a new file using shutil
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import shutil | |
with open('/home/user/acetylene.xyz','r') as fsrc: | |
with open('/home/user/acetylene-copy.xyz','w') as fdst: | |
shutil.copyfileobj(fsrc, fdst) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment