options to store data other than .txt and database

Posted on 2010-11-07
Last Modified: 2012-05-10
Hi All,

I have to store few simple file names and other strings in hierarchal order. Something like There is a room(Frame) (lets say room no. 1) there are 10 posters in the room ( panels). Each poster can have any number of items ( components).

I have several of these rooms. User can create new room, remove/add posters and add/remove items on the poster. I want to store these information to make this app work.

I do not want to use database as this seems to be really simple to use a database. I was wondering if there are any alternatives to using text files. Or may be some tricks and suggestions to make reading and writing in files more organized.

Question by:hipal
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 20

Accepted Solution

a_b earned 167 total points
ID: 34081575
You can use serialization.
=> Create a Tree structure of the the data
=> Serialize it into a file
=> Deserialize when you need the data again
LVL 20

Expert Comment

ID: 34081579
You can use serialization.
=> Create a Tree structure of the the data
=> Serialize it into a file
=> Deserialize when you need the data again

Author Comment

ID: 34081680
Thanks fr reply  a_b

I also want same application on remote machine to access this data .. in that care ?
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

LVL 20

Expert Comment

ID: 34081688
That will also work. Serialization is meant for transmitting objects/data to remote machines.

Author Comment

ID: 34081707
can you please have a look at this related post of mine .. which says more about what I am trying to do

LVL 143

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 34082954
while you could use file indeed, i would rather use a db for this

Assisted Solution

jaffog earned 167 total points
ID: 34083169
I agree with angellll. You can always decide to use caching combined with an XML (or other type, like serialization as a_b mentioned) layer to make sure your database doesn't get queried on every single request.

Layered, it looks like this:
- Client
- Cached XML (or other type)
- Dynamic script generating the XML, once every X [requests|minutes|hours|whatever]
- Database containing the data

Something like that?
LVL 86

Assisted Solution

CEHJ earned 166 total points
ID: 34083348
>>I do not want to use database as this seems to be really simple to use a database.

The simplicity of your entity relationships is not really related to the issue of whether to use a database. Much more important is how you provide the functionality of what is required from your storage solution. There are various options:

1. A relational database
2. Object-relational techniques
3. An object database
4. Reinventing a database

By far the worst option in your case is the last one - it should be avoided

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Azure Functions is a solution for easily running small pieces of code, or "functions," in the cloud. This article shows how to create one of these functions to write directly to Azure Table Storage.
This article shows the steps required to install WordPress on Azure. Web Apps, Mobile Apps, API Apps, or Functions, in Azure all these run in an App Service plan. WordPress is no exception and requires an App Service Plan and Database to install
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question