Created
August 30, 2016 13:07
-
-
Save josuebrunel/389ef3814e4cdc8f8f8e0bf53cb00302 to your computer and use it in GitHub Desktop.
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
def cp_file(infile, outfile): | |
with open(outfile, 'wb') as fo: | |
fd = open(infile, 'rb') | |
for line in fd.readlines(): | |
fo.write('%s' % line) |
Author
josuebrunel
commented
Aug 30, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment