Parsing the data is simply a matter of splitting your text into its constituent parts via a parser. You can either write your own, based on one of the many tokenizer functions, or you can implement a free third party parser. Creating the tree is similarly not too difficult as Windows has a built in tree control that is implemnted in MFC as the
CTreeView
Class[
^]. There are also many sample projects around that can help with the basics; take a look at
the articles section[
^].