<reponame>shihab4t/Books-Code
with open("text2.txt", 'w') as file:
    file.write("Test")
    file.seek(0)
    file.write("st")


with open("text.txt", 'r') as rf, open("text-copy.txt", 'w') as wf:
    for line in rf:
        wf.write(line)
