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
Yoel Benítez Fonseca -
Abhinav Anand -
oteri -
James Li -
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!