Not a traversal function. You want to be able to traverse without needing to write to file each time you do a traverse.
A separate save function is probably best. That gives you more control. In addition it allows you to save the entire tree or any subtree of the original tree just by passing it the "root" of the (sub)tree you want to save.
Reputation Points: 718
Solved Threads: 373
Nearly a Posting Maven
Offline 2,253 posts
since Jul 2005