Since you did not state the size of the html files, here is a function will work.
[tt]
lcSerachStr = "COUNRTY"
lnFile = fopen(Htmlfile)
do while !feof(lnFile)
lctext = upper(fgets(lnFile))
if at(lcSearchStr , lcText) > 0
do whatever
exit
endif
enddo
= fclose(lnFile)
[/tt]
You can also use the commands
Atline(), AtcLine(), or RatLine()
or the commands
ChrTran(), StrTran(), Stuff(), Sys(15), Sys(20) David W. Grewe
Dave@internationalbid.com