Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Array not reading next line in opened text file

Status
Not open for further replies.

Grogo

MIS
Jun 28, 2001
11
US
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
 
Never mind, I overlooked the Array offset box in the debugger [ponder]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top