H
http://links.i6networks.com
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.
I want to be able to select sub note and search all note and search with a
sub note.
It is really like a Forum, but saves everything in one text file.
Here is some of my ideas:
design 1:
parentname1:childname1:childdata1
parentname1:childname2:childdata2
design2:
parentname
childname1:childdata1
childname2:childdata2
design2 saves space, but design2 also requries everything is in order.
design1 allow me just appent lines to the file.
Any other better designs?
regular expression.
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
sub note.
It is really like a Forum, but saves everything in one text file.
Here is some of my ideas:
design 1:
parentname1:childname1:childdata1
parentname1:childname2:childdata2
design2:
parentname
childname1:childdata1
childname2:childdata2
design2 saves space, but design2 also requries everything is in order.
design1 allow me just appent lines to the file.
Any other better designs?