You have to know how the items in the file belong together. So basically you have to write at least the parent node too.
If you read the file, you then should be able to build the tree.
This is how I would do it - just a general approach.
Thomas
Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------