- Edited
DaveTheCoder
Ok did that but it didnt work, Im probably doing something wrong to be honest, anyhow heres what I have currently. See anything wrong with it that could be throwing it off?
`
data
func saveFileFunc(File,_Difficulty) :
var parentFilePath = "user://Documents"
if not FileAccess.file_exists(parentFilePath+"/"+gameName+".txt") :
print('creating')
var GameFile := FileAccess.open(parentFilePath + "/" + gameName + ".txt", FileAccess.WRITE)
if GameFile != null:
print("Created game file successfully!") # Clear message for success
GameFile.store_string("Game file thing")
GameFile.close()
else:
print("Failed to create game file:") # Clear message for failure
print(FileAccess.get_open_error()) # Get detailed error message
`
Do I need to set something in Project Settings? I feel like it could be something simple like that