Let's say you have this in a textfile
Code:
1.0
1.1
1.1-2.0
1.1-2.1
1.2
1.2-2.0
1.2-2.1
1.2-2.2
1.3
So in this example 1.1-2.0 and 1.1-2.1 are dependant on 1.1

I want to be able to delete a row from this text file but I need to rebuild it correctly again.

Deleting 1.1 now leads to this: (that's how far I got)
Code:
1.0
1.2
1.2-2.0
1.2-2.1
1.2-2.2
1.3
As you can see, 1.2 doesn't follow up 1.0 and so my app crashes...

The right output would be:
Code:
1.0
1.1
1.1-2.0
1.1-2.1
1.1-2.2
1.2
It's getting a bit to difficult for me. My brains are starting to boil.

Does somebody know how to write the procedure to do that last thing I explained?
Pls help me on this one...

Thx a lot allready...