Saving not working c#

Godot Version

4.4 → 4.7

Question

im trying to save an array in an json fileevery check ive done says that the json file has succesfully been altered. but when i check the file its the same. here the code snippet:

private Godot.Collections.Dictionary<string, Variant> PreSaveManuallyMadePlant()

{

    return new Godot.Collections.Dictionary<string, Variant>()

    {

    {"Geneticcodepartslist",4},

    {"GeneticcodeReplicationSteps",3}   

    };

}

private void SaveManuallyMadePlant()

    {

using var saveFile = FileAccess.Open("user://PlantsGenesSavefile.json",      FileAccess.ModeFlags.Write);   

      GD.Print(saveFile," banana");

      var nodeData = PreSaveManuallyMadePlant();

      var jsonString = Json.Stringify(nodeData);

      saveFile.StoreLine(jsonString);

      saveFile.StoreLine("hi");

      saveFile.Close();

    }

image

"user://" paths will not save to your filesystem panel, the user directory is elsewhere. You can click “Project → Open User Data Folder” to find it.