Storing a tree of data in a file.