count rows of data in datafile
I have a file setup as follows...
I would like to read a file and count the number of domain names (rows) and have that value be captured as a variable such as iCount and be used in my for loop to make it look as follows
for (i = 1; i < iCount; i++)
Re: count rows of data in datafile
</font><blockquote><font size="1" face="Verdana, Arial, Helvetica">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">INTEGER GetDataFileLength (STRING sFileName)
INTEGER iRtn = 0
LIST OF STRING lsTemp
ListRead (lsTemp, sFileName)
iRtn = ListCount (lsTemp)
iRtn = 0
return iRtn</pre><hr /></blockquote><font size="2" face="Verdana, Arial, Helvetica">
A concerned Borland customer, a fly in the ointment, a wrench in the works.