Hi folks, I'm trying to write an optimiser utility that takes a .b3d file and merges the meshblocks together for instance

[meshbuilder]
vertex 1.0,2.0,3.0
face 0,1,2,3
[meshbuilder]
vertex 4.0,5.0,6.0
face 0,1,2,3

would now read

[meshbuilder]
vertex 1.0,2.0,3.0
vertex 4.0,5.0,6.0
face 0,1,2,3
face 4,5,6,7

the way i'm trying to do it is to save the vertex and face element separately, so what i wanted to do was to save the address of each line in a different section of an array, so all the 'face' lines get saved in one part of the array and the 'vertex' ones in another. then what I want to do is output the 1st element of the array then point to the next element, meaning the face statements should come out one after the other instead of being separated. the problem is that trying to make an array containing the addresses of each line doesn't seem to work for me. is there an easy way to make an array containing addresses, rather than integers and strings etc?

I'm not trying to sort the data into the largest number of alphabetic etc (i wish i was)
i'm tearing my hair out!