RE: Writing to file/registry
use a textfile and eval();
in the textfile:
var1 = 38273;
var2 = 382773;
read the textfile into var a and do eval(a) it will evaluate the text and assign the saved values
function save()
{
writetofile('var1 = ' + var1 + ';var2 = ' + var2 + ';');
}
function load()
{
eval(readallfile()); // will assign corresponding var1, var2 values
}
this way you dont have to create/delete any registry values and the files will be removed when your script is removed by the user
This post was edited on 07-03-2006 at 06:06 PM by dramado.
|