Decodes a tree file