Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

File directory not working, please help!

A topic by Dylan created Apr 21, 2023 Views: 126
Viewing posts 1 to 1

So, I have a file directory written like this: 

def saveGame(type, strings, database="dragonGardensConsoleDB.json"):

        with open(database, mode='r') as JSONdb:

                ... code ...

It works fine in VSCode, but as soon as I run it in the Command Prompt it won't work. Why?

Code:

They are in the same folder, and there is no other files in the folder other than those two.

Please help!