The error points to this line:
ph=tokens[2];
You are attempting to take the third element from the array, but the error is saying that there
is no third element, so that index was "out of the bounds" of the array.
So, tokens only has two elements, which means that there is only one
,
in the string. If that was not intended, check your text file for correctness. If you believe it should be fine but it still crashes, use your debugger to run the code step-by-step and inspect the variables to see where it goes wrong. If you know that, you can fix the error.