Skip to content

Instantly share code, notes, and snippets.

print("test gist created")
# open both files
with open('first.txt','r') as firstfile, open('second.txt','a') as secondfile:
# read content from first file
for line in firstfile:
# append content to second file
secondfile.write(line)