in reply to Grab last line and print

Hi,

I am pretty sure the following would work (assuming a unix or linux platform):

$lastLine = `tail -1 <fileName>`;
It just uses the linux tail function. I know windows has a tail-like function that you can download.

Tony