WolRon #1 d\open=writeint(save, d\open) Why would you change the variable as you save it? Shouldn't this just be:writeint(save, d\open)