Shoutbox

Persisting data best practice - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: Persisting data best practice (/showthread.php?tid=62644)

Persisting data best practice by nokturnal on 07-06-2006 at 03:10 AM

Hey guys/gals,

I was just wondering what the board feels the best practice is for persisting data (have it available after reboots, etc).  I am leaning towards writing an XML file to persist data.

How have you done it?

Cheers :)


RE: Persisting data best practice by -dt- on 07-06-2006 at 03:19 AM

I prefer XML files due to its contained within the script directory and doesn't mess with the registry (which is just dodgy IMO). You can also specify how things are saved and you have greater control over it.

but really its up to whatever you want to do... theres no "best way" just the way people prefer.


RE: Persisting data best practice by Volv on 07-06-2006 at 06:19 AM

Files are definitely the best in theory, but registry can be faster (which isnt really very important unless you're continuously reading from a file in some form of loop) and easier to work with.