Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
August 19, 2004, 10:49 pm
rate this thread
What is the best way to do it in term of speed.
I want to be able to select sub note and search all note and search with a
It is really like a Forum, but saves everything in one text file.
Here is some of my ideas:
design2 saves space, but design2 also requries everything is in order.
design1 allow me just appent lines to the file.
Any other better designs?
Re: What is the best way to make a Tree Data Structure in one text file?
> I want to write a tree and read the tree from one text file by Perl's
> regular expression.
> What is the best way to do it in term of speed.
dump a hash of hashes to a file and read it back
> I want to be able to select sub note and search all note and search
> with a sub note.
In your file, or after reading the data into memory?
> It is really like a Forum, but saves everything in one text file.
XML? Altough for a Forum I would recommend a database.
John MexIT: http://johnbokma.com/mexit/
personal page: http://johnbokma.com/
Experienced programmer available: http://castleamber.com/
Happy Customers: http://castleamber.com/testimonials.html