Everyone,

I know it is possible to save preferences settings so that even if you shut down and restart your computer the preferences are saved. If I want to save the value of a variable so that when the computer is shut down and restarted i could retreive the variable, how could I do this.

I have looked through some threads and it looks like I can write the variables and values to a text file within the program directory but what would the code look like to export and then import the values?

I know this is most likely a very simple thing to do but I just can't seem to get it.

Thanks for your help