Categories
How to merge 2 text files in python?
file1.txt
some text with tabs here
and here
some text with tabs here and here
Answer the question
In order to leave comments, you need to log in
open("file3.txt","w").write(open("file1.txt","r").read() + open("file2.txt","r").read())
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question