473,396 Members | 2,011 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Storing Application Data between executions

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
Dec 22 '06 #1
2 1417
I would enumerate the classes and dump the info to XML and on load recreate
the classes as according the XML.

Adam - http://www.aejw.com/?page=contact

"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

Dec 22 '06 #2
"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

Dec 22 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: harishg2 | last post by:
Hi, How to store a variable value for more than one executions. Ex: main() { int i=0; i++; printf("%d",i);
4
by: Frank Rizzo | last post by:
In classic ASP, it was considered a bad idea to store VB6-created objects in the Application variable for various threading issues. What's the current wisdom on storing objects in the Application...
4
by: Mike | last post by:
I've created a custom IHttpModule that does custom authentication. Currently it stores authenticated user info in a hashtable within the class so I don't have to re-authenticate against a database...
4
by: kanones | last post by:
I have some data that is been retrieved from a call to sql server stored procedure that I want to store for a period of time in a web farm architecture. I want to minimize the calls to sql server...
2
by: Larry Woods | last post by:
Can't find the right object... How do I test to see if my application is already executing; i.e., multiple application executions? TIA, Larry Woods
6
by: (PeteCresswell) | last post by:
User wants to go this route instead of storing pointers in the DB and the documents outside. Only time I tried it was with only MS Word docs - and that was a loooong time ago - and it seemed to...
9
by: KarlM | last post by:
After reading some articles regarding confuguration data I'm a bit confused. Where is the right place for storing configuration data? - XML-files? - registry? - INI-files? (from a users point...
2
by: Mythran | last post by:
We followed an example found on MSDN to create an encrypted FormsAuthenticationTicket and storing the ticket in a cookie. Is this the "correct" way to store the authentication ticket? We are...
13
by: Thomas Neubauer | last post by:
Hello, i am learning c# and have created now a simple project that just creates 6 random numbers. My form includes a button and 6 labels for the random numbers. The program seems to work...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.