Hello friends,
I am working on a problem where i need to dump huge amount of data from a file into a tree for analysis. The data in the file would be in specific format something like given below:

node1 child1 child2
child1 child3 child4
child2 child5 child6

Since there would be thousands of such lines i need a very optimised way to acheive it.
The format of the file could be modified depending upon the requirements.So can you please suggest the best possible method to achieve it.Are their any specific libraries that take input data from a file and dump it into a tree? Or do i need to write the routine to achieve it.

Regards,
Mukesh

Do you have a tree already or do you need one? Also what type of data does the file have? What I mean by that is, is child1 a string or something else you are just calling it child1?