In python:
f = open("input.txt", 'r')
copy = open("copied.txt", 'a')
txt = ""
for i in f.readlines():
txt += i
copy.write(txt)
f.close()
copy.close()
I hope this helps!
8.3m questions
11.0m answers