from shutil import copyfile
copyfile("/root/a.txt", "/root/b.txt")
For further actions, you may consider blocking this person and/or reporting abuse
from shutil import copyfile
copyfile("/root/a.txt", "/root/b.txt")
For further actions, you may consider blocking this person and/or reporting abuse
Trix Cyrus -
Albert R. C. Guedes -
James Ononiwu -
Williams -
Top comments (3)
or:
fa = open("root/a.txt", "r").read()
fb = open("root/b.txt", "w")
fb.write(fa)
Thanks for sharing
you're welcome!