I am looking to write some code that will take a flat file and create a child/parent hierarchy from it. The flat file is sorted in order so that each new row is either a new level in the heirarchy or a new child member. This is a sample of the sorted flat file from which the hierarch should be created:
This is the expected format of the hierarchy:
Anyone can help me? Thanks!
This is the expected format of the hierarchy:
Anyone can help me? Thanks!