python - Copying file from one directory to another - Stack Overflow

PHOTO EMBED

Fri Feb 25 2022 10:03:10 GMT+0000 (Coordinated Universal Time)

Saved by @Macko2022 #python

import json

#someFiles is just a fold name inside the projects main folder.
with open("someFiles\\file_name", "r") as whatever_u_want:
    var_of_choice = json.load(whatever_u_want)


print (var_of_choice)
content_copyCOPY

https://stackoverflow.com/questions/43592966/copying-file-from-one-directory-to-another