I want to convert my current tree to a list format.

example
Tree:
+Group One
|---One
|---Two
|---Three
|---Four
+Group Two
|---A
|---B
|---C
|---D

to

List:

Group One
One
Two
Three
Four
Group Two
A
B
C
D


I am pretty sure i have to create a loop and call GetItemText(), but i am not sure how to properly do this.

PS Please post an example (not that advanced programer).