ID:139485
 
For some reason the << operator (savefile) doesn't overwrite the value which was pre-written in the save file.

What I mean is -> assume F["Var"] where F is the save file and "Var" is the path. Lets say F["Var"] has the value 10. Suppose that variable got changed in the game to 20 and we save as usual F["Var"]<<Var.

But what I observe here is that I don't find 20 getting written to F["Var"], the next time I load it still gives me 10.

But on the other hand if I give as
F["Var"]=null
F["Var"]<<Var

I get the result 20.

Is there any special reason why this happens?</<>
Can you edit your post with DM tags for readability?
Also, this should be submitted as a bug report.
In response to Flame Sage
There was almost no code over there, but I am not sure of this as a bug report since I don't have a solid proof, unless I expose my project, but I will try to reproduce this.
In response to Quixotic
If it has anything to do with bad output, it is very possible you got hit with a bug that appears rather randomly (at least in my cases). =/
The problem solved. I was just keeping the file open.
In response to Quixotic
When exactly does an opened save file get closed?
I assume its after 'the proc in which it was opened' gets terminated.
In response to Quixotic
It would be more accurate to say "when the respective savefile object is deleted".
It's also possible to unlock an open file by using... well, Unlock(). Of course, in normal situations you don't need to mess with that.