Last active
April 29, 2018 15:36
-
-
Save IaroslavR/3d8692e2a11e1ef902d2d8277eb88cb8 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
with open("inFile.txt", 'r') as src, \ | |
open("outFile1.txt", 'w') as out_1, \ | |
open("outFile2.txt", 'w') as out_2: | |
for line in src.readlines(): | |
out_1.writelines(line) | |
out_2.writelines(line) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment