Well, I have none, that's why I'm asking for help [Wink] . But all kiddings aside, I've implemented the suggested changes and still receive the error mentioned in previous post.
Here's the changed code:
code:
  
$file="%temp%\text.txt"
$string="*"
$length=len($string)
$count=0
$=open(1,$file,2)
$line=readline(1)
while @error=0
:lookagain
$pos=instrrev($line,$string)
if $pos
$count=$count+1
;$string=left($string,$pos)
$line=left($line,$pos-1)
goto lookagain
endif
$line=readline(1)
loop
$=close(1)
? $count



[ 07 June 2002, 01:36: Message edited by: Jake ]