My experience with a Tree View
Is that it is basically a PITA to use...
If your text file is just a list or a formatted, you should be fine. But if its a text document (like a paragraph), you're screwed.
Basicaly you're going to need to set up a way for your code to tell what type of node each line is.
A good way to do this is to append each line in the file with a prefix character to indicate if it's a parent node or a child node.
Like this...
!=Parent
@=Child
!My parent listing of text
@Item 1
@Item 2
@Item 3
!Another Parent listing of text
@Item 1
@Item 2
@Item 3
You'll also need to tell the code what Parent a Child is attached to, so you may want to add in either a number or text prefix to indicate which parent the child is attached to.
!X1-My Parent Listing of Text
@X1-Child text3
@X1-Child text2
etc
Then you tell your code to find the prefix at the beginning of each line and use that to determine where each item is supposed to go. Note that if you use the second method, you don't have to have the items in order, because the prefix will tell the thing wher it's supposed to be.
Eiredrake
This is a sample file snippet
;
;1 Game in list
;
;
"Perfect Dark"
"* Hi-Res Codes Below *"
"Turn Off Bright Lights" .off
802d23f00020
"Thermal View" .off
802c6d630001
"Infinite Ammo / No Reload" .off
80206efa00ff
801edefb00ff
801d4efb00ff
"Hi-Res - Enable Code" .off
ff0002200000
.end