"Greg Larsen" <gr*********@removeit.msn.comwrote in message
news:BF**********************************@microsof t.com...
>I am writing an application where I need to store some data between
application executions. I wonder where might be the best place. The
application basically needs to store different objects, where each object
contains one or more sub objects. Where should I store this data, and how
can I read and write the data. Some examples would be good. Here is a
sample of the data I want to store.
Object 1
Name = A
Sub Objects
Name = 1
Sub Sub Objects
Name = a
Name = b
Name = 2
Sub Sub Object
Name = a
Name = 3
Object 2
Sub Objects
Name = 1
Name = 2
First you want to pick your serialization strategy. See the following
articles on that:
Basic Serialization
http://msdn2.microsoft.com/en-us/library/4abbf6k0.aspx
Custom Serialization
http://msdn2.microsoft.com/en-us/library/ty01x675.aspx
Once you have the serialization working, where you store the data is up to
you. You could use IsolatedStorage, your local application directory (not
recommended), a directory for your app under the users application data
folder, or elsewhere.
--
Tom Porterfield