Using the ReadFile UDF we could do
Code:

$lines=ubound(readfile('c:\somefile.txt'))-1

_________________________
There are two types of vessels, submarines and targets.