i have the following data
root
root/blue
root/blue/temp
root/main
root/main/dev
root/main/back
root/etc/init
root/etc/init/dev
root/etc/init/test
root/etc/init/back
root/etc/init/server
root/etc/init/system
root/etc/init/setup
root/system
root/system/temp1
root/system/temp2
root/system/temp3
root/system/temp4
root/system/temp5
root/system/temp5/dev1
root/rel
root/intel/archival
root/intel/archival/newsreel
root/intel/archival/recording
i would like to be able to use the class to either databind to a tree control (ASP.Net) or generate a UL/Li for jquery consumption.
I need to convert it to a List class that will return the proper hierarchy. I have tried many different approach so far, and I'm not able to find a solution. I'm stuck. I tried asking in an earlier post but the solution did not work, after many attempts to modify some it just plain does not work. I hope one of you can help me out.
Also this is not a simple split functions, I know how to split a string.
Thank you in advance