WordTree writeFile