What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » best way to store/save information?

best way to store/save information?
Author: Message:
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: best way to store/save information?
quote:
Originally posted by JonnyT
What would be the best method, and how dyou do it, to store/save information for scripts. Things like settings/options, nicknames etc

Thanks J
There would be no 'best' method. It highly depends on what those settings actually are.

There are some methods you can use:
1) Saving data in not structured files
2) Saving data in INI files
3) Saving data in XML files
4) Saving data in the registry

For each there are benefits and drawbacks, and each can/should be used for specific scenarios. Which method you choose depends on many things, but in the first place the kind of data to be stored. eg:

1) Saving binary data or data which contains huge lumps of text, etc. Easly portable and easy to backup. Not easy to code, unless 1 file contains only 1 dataset.
2) Saving small settings which don't need complex structures. Easly portable and easy to backup. Can be reconized easly, read in an instant and edited by everyone. Difficult to work with in scripts as it doesn't support an INI structure by default.
3) Saving more complex data structures. Easly portable and easy to backup. Not so easy to see the actual settings at first glance as it contains lots of "special codes". Needs some amount of support code in your script.
4) Saving small settings or not so complex data structures. No files needed and thus not easly porteable. Not everybody knows how to manually edit it, etc. Though requires the least amuont of code in scripts.

Mostly you'll see that the registry is being used as that is the most ideal in many scripts.

This post was edited on 07-02-2006 at 01:53 AM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
07-02-2006 01:49 AM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
best way to store/save information? - by JonnyT on 06-26-2006 at 06:00 PM
RE: best way to store/save information? - by Griffo on 06-26-2006 at 08:26 PM
RE: best way to store/save information? - by J-Thread on 06-26-2006 at 08:38 PM
RE: best way to store/save information? - by segosa on 06-26-2006 at 08:39 PM
RE: best way to store/save information? - by CookieRevised on 07-02-2006 at 01:49 AM
RE: best way to store/save information? - by Griffo on 07-15-2006 at 03:43 PM
RE: best way to store/save information? - by Volv on 07-15-2006 at 03:53 PM
RE: best way to store/save information? - by Griffo on 07-15-2006 at 04:03 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