BingXuanChng:
Sir, what exactly are the reason why the third arm of my if statement can never be reached? Is there an alternatives to
if/else-if/else-if statement if i want to keep the structure of the code as it is while replacing my if/else-if statement only?
I suspect you have the closing } belonging to else if (ch ==',') in the wrong place. It appears before else if (fieldIndex == (No_of_Fields -1)) whereas I think it should actually be after the closing } for else if (fieldIndex == (No_of_Fields -1))
...R