The format of the tree file conforms to the so-called Newick standard. A description can be found here.