hipal
asked on
options to store data other than .txt and database
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.
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.
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
Thanks fr reply a_b
I also want same application on remote machine to access this data .. in that care ?
I also want same application on remote machine to access this data .. in that care ?
That will also work. Serialization is meant for transmitting objects/data to remote machines.
ASKER
can you please have a look at this related post of mine .. which says more about what I am trying to do
https://www.experts-exchange.com/questions/26598230/shared-file-server-for-two-remote-java-apps.html
https://www.experts-exchange.com/questions/26598230/shared-file-server-for-two-remote-java-apps.html
while you could use file indeed, i would rather use a db for this
SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
=> Create a Tree structure of the the data
=> Serialize it into a file
=> Deserialize when you need the data again