I am parsing an OpenGL file and am noticing something peculiar about the Split command. I am taking a string which has a text value (v or vn) and a set of three single values (1.000000 -1.000000 -1.000000).
The first time I split a string into an array I use the MyTempArray(0).Val, MyTempArray(1).Val,MyTempArray(2).Val, which I believe is correct by starting at 0 and ending at 2 for a total of three values.
The second time that I split the string into an array in a different method, I use the MyTempArray(1).Val, MyTempArray(2).Val, MyTempArray(3).Val, which is starting at 1 and ending at 3.
Maybe I am doing something wrong, and should the splitting of a string into an array begin at 0 instead of 1 the second time? Here is my code which shows the issue and performs the same way on Windows 10 and my Mac Mini.