Link to home
Create AccountLog in
Avatar of hipal
hipalFlag for United States of America

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.

ASKER CERTIFIED SOLUTION
Avatar of a_b
a_b

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of a_b
a_b

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

ASKER

Thanks fr reply  a_b

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.
Avatar of hipal

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

Avatar of Guy Hengel [angelIII / a3]
while you could use file indeed, i would rather use a db for this
SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.