I am opening a new file (which didn't exist until now) using this line of code:
file_number = input("What number player are you? ")
with open(os.path.join(playergold, "gold.%s.txt" % file_number), "w") as g:
#playergold is the directory 'PlayerFiles/PlayerItems'
The computer can use the files once, but not read the files, or write in them afterwards, and I cannot find them anywhere in the file view screen. Even after the program successfully ends, they are none-existent. Is this something repl.it does, or are they loading wrong, or something else I don't know? Please help! Anything at all is helpful!
This is what my screen looks like:
On the left, if you enter in a new number, a new file is supposed to be put inside the PlayerGold folder. (The other error I am currently experiencing is not a part of the question.)