Try something like this:
code:

Break on
$count = 1
$FileName = "C:\boot.ini"
IF Open(1, $FileName) = 0
$x = ReadLine(1)
WHILE @ERROR = 0
? "Line number " + $count + " reads: [" + $x + "]"
$count = $count + 1
$x = ReadLine(1)
LOOP
ENDIF

get $


_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.