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.
Posts: 1819 Reputation: 74
36 / /
Joined: Mar 2004
RE: Persisting data best practice
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.
Posts: 1233 Reputation: 31
35 / /
Joined: Oct 2004
RE: Persisting data best practice
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.