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
Vinícius Aarão Caldas da Costa -
Alexander Kammerer -
Thatohatsi Matshidiso Tilodi -
Vikas76 -
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!