So exactly what are you having trouble with. Do you not know how to read an input file? Do you not know how to allocate chunks of memory out of a buffer? Do you not understand the data structure? Help us out here, we aren't mind readers.
Up the Irons
What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
"Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
Down with Sharon Osbourne
"I wouldn't hire a butcher to fix my car. I also wouldn't hire a marketing firm to build my website." - Nilpo
Yes.. Allocating the memory part.. I dont understand how to do it. Which programming language is more suitable for this kind of coding. I was thinking of doing it in c++.