DaveTheCoder
Is configFile good for storing player data?
Other than that Im trying to create a text file in the user documents with the name of a certain variable I have called gameName.
But anyhow I cant figure it out. So this is my current code, no errors, and it prints "created", but nothing appears in my files which gives me reason to believe I have to parent it or something:
`
func saveFileFunc(File,_Difficulty) :
var parentFilePath = "user://Documents"
if not FileAccess.file_exists(parentFilePath+"/"+gameName+".txt") :
print('creating')
var GameFile = FileAccess.open(parentFilePath,FileAccess.WRITE)
if GameFile != null :
print('created')
GameFile.store_string('Game file thing')
GameFile.close()
else :
print('failed')
return
else :
print('Storage file already exists')
`