One way using your code, slightly modified...

 Code:
Break On
$ffh=freefilehandle()
IF Open($ffh,"filepath")=0
  $line = ReadLine($ffh)
  WHILE @ERROR = 0
    $count=$count+1
    if $count=2
      ? $line
    endif
    $line = ReadLine($ffh)
  LOOP
  $RC=Close($ffh)
EndIf
Sleep 5


Another way, using Readfile() - http://www.kixtart.org/forums/ubbthreads.php?ubb=showflat&Number=84660

 Code:
$filecontents=readfile("filepath") ;puts the contents of the file in an array
? $filecontents[1] ; arrays are zero based, so to see line 2 subtract 1 = 1 and put in the square brackets

;paste the linked function here/or the bottom of your script




Edited by Allen (2009-08-15 12:38 PM)