What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Writing to file/registry

Writing to file/registry
Author: Message:
dramado
New Member
*


Posts: 11
Joined: Jun 2006
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.
07-03-2006 06:03 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Writing to file/registry - by craig2k5 on 07-03-2006 at 04:20 PM
RE: Writing to file/registry - by rob_botch on 07-03-2006 at 04:52 PM
RE: Writing to file/registry - by alexp2_ad on 07-03-2006 at 05:22 PM
RE: RE: Writing to file/registry - by craig2k5 on 07-03-2006 at 05:52 PM
RE: Writing to file/registry - by matty on 07-03-2006 at 05:26 PM
RE: Writing to file/registry - by dramado on 07-03-2006 at 06:03 PM
RE: Writing to file/registry - by craig2k5 on 07-03-2006 at 06:10 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On