I am having problems with setting up an array to read from a text file. Debug shows the file being opened, the array counter advances correctly but the contents of the variable never change. It seems to keep going back to the beginning of the file. As a test I replaced the array with a string variable and it reads the file just fine. I assume I am not using the array correctly or I am not reading the debugger right. Any suggestions?
while not feof 0
fgets 0 zServer1[iCounter]
if (iCounter+=1)==1101
exitwhile
endif
endwhile
while not feof 0
fgets 0 zServer1[iCounter]
if (iCounter+=1)==1101
exitwhile
endif
endwhile