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
Muhammad Taha -
vladkens -
AlvBarros -
shadowb -
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!