I would like to have a check for save games for a command-line game I'm working on.
The save games are singular ".txt"
files, and the way this short piece of code works is it tries to open the "name.txt"
file in the "%appdata%\Roaming\AdventureChapt1\"
folder, then looks for an error message when Python can't find the file.
How would I do this?
print('Loading Save Data')
savecheck = open('%appdata%/Roaming/AdventureChapt1/name.txt', 'rt')
if savecheck.read() == '':
newgame() # calls the "newgame" function to bring up the New Game wizard