...
It's _a_ way (and a good one if you like XML) -- another is just a bunch of
name/value pairs as Joe suggested, which has the advantage of greater
readability in a text editor, and the disadvantage of requiring more work
for hierarchical preferences, or ones whose values can contain field &
record delimiters.
...
I used a set of name/type/value tuples. If the value would cause
syntax problems (really, anything other than the base 95 ASCII
printing characters), I store it as base 64 encoded (and mark it that
way so I can decode on reading in).
I also store complete encoding information with all strings (:-).
Craig
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
|