Hi,

I have the following data in a two dimension array

RaceX/cRaceCar.cpp
RaceX/dsutil.cpp
RaceX/
RaceX/res/bmp_fullroadq11.bmp
RaceX/res/gold_tophy.bmp

It is a path of the files / directories.

I want to represent it in a tree structure.

RaceX
|_______cRaceCar.cpp
|_______dsutil.cpp
|_______res
...............|_______bmp_fullroadq11.bmp
...............|_______gold_tophy.bmp

Please help me with an algorithm...

Currently I am using the following..

1) Sorting the List
2) Printing the list one by one after checking the no of '/'

The Vector Sort doesnt behave as expected...

Any Help is appreciated.

Thanks,
Pradeep