Beginner Python user here. I'm trying to write a formula that will merge two text files. As in, the first file should have the text of the second simply added to it, not replacing anything in either file.
Here's what I have so far:
def merge(file1,file2):
infile = open(file2,'r')
infile.readline()
with open('file1','a') as myfile:
myfile.write('infile')
myfile.close()
Any help would be greatly appreciated.