Question

Would this work if the actual count of lines was not important?

code:
  
Break on
$count = 0
$FileName = "C:temp.txt"
IF Open(1, $FileName) = 0 and ReadLine(1)
WHILE @ERROR = 0
$count = $count + 1
if $count = 10
call "count at least 10 script"
return/exit
endif
? "Line number " + $count + " reads: [" + $x + "]"
$x = ReadLine(1)
LOOP
call "less than ten but greater than 0 script"
ENDIF
Close(1)
get some$

_________________________
Eric