I recently picked up Godot and I was working on a little test game to get me used to the engine, but I'm struggling to save the high-score of the player. All I need is to write a single line to a save file, but I can't seem to create the file in the first place. I've looked all over the documentation and the internet, but nothing is fixing it. I can't see any reason this isn't working.

Another issue I'm having that is possible related is that when attempt to open a file to load it, it throws the error
'GetAsText: File must be opeend before use', even though I am already opening the file (as seen below)

Any help would be appreciated!