This code works:
var configFile = ConfigFile.new()
var file_to_save= "res://stats.cfg"
var err = configFile.load(file_to_save)
if err == OK:
print("score written to ", file_to_save)
print("there was an error with the file")
The problem is, for it to work on Android, I need to change the
var file_to_save= "res://stats.cfg" line to
var file_to_save= "user://stats.cfg"
In another game I made I had an issue where my Android build wouldn't work unless I changed it from
user. In this game though, it's not even working with
Can anyone offer any advice as to why? Thanks a tonne....