Hi. I am wanting to print out line 3 from every text file in a specific directory. With sealeopard's help, I have written some small code. Although, when I run the script, all it returns is a bunch of "20"s. Here is the code:

$FileName = Dir("C:\novellclient\*.*")
While $FileName <> "" and @ERROR = 0
open (1,$filename)
for $a=1 to 3
$line=readline(1)
next
close(1)
? $line
$FileName = Dir() ; retrieve next file
Loop

Thanks!
Jason