Hi there people,
I'm going mad as this to me would seem easy to do, but I cannot fathom this out today:-
I read a file:-
FIRST_LINE, a value
SECOND_LINE, another value
THIRD_LINE, yet another value
Then that geat read into an array:-
FirstArray[0] = "FIRST_LINE, a value"
FirstArray[1] = "SECOND_LINE, another value"
FirstArray[1] = "THIRD_LINE, yet another value"
What I would like to know is, I would really prefer to have this data in this format:-
FirstArray[0] = "FIRST_LINE"
SecondArray[0] = " a value"
FirstArray[1] = "SECOND_LINE"
SecondArray[1] = "another value"
FirstArray[2] = "THIRD_LINE"
SecondArray[2] = "yet another value"
I can't see how to achieve this. Anyone would like to tell me why I can't see the wood for the trees please?
Cheers,
MRb