Heres a code snippet
tempBoard is an array of strings, which reads all lines from a txt file i have. the layout of the txt is:
When i try to add data to a list called Leaderboard, using the tempBoard array, it gives the error “Argument is out of range”, and ive no idea why?
for example, when i =0, i2 will equal 0, and (i2)+1 will equal 1.
in the example below, when i gets to 3, i2 will equal 6, and (i2)+1 will equal 7, which should work given the length tempBoard is 8 (shown below).
What is happening? thanks in advance