maciep, do you mean that this should do then too:
code:
$FileName = "C:temp.txt"
$=Open(1, $FileName)
do
$count = 1+$count
until 0=ReadLine(1) or $count >10
if @error=0
if $count>10
call "count at least 10 script"
else
call "less than ten but greater than 0 script"
endif
endif
$=Close(1)
get $

[Wink]
_________________________
!

download KiXnet