Storing Application Data between executions

G

Guest

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
 
T

Tom Porterfield

Greg Larsen said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top