Greetings fellow monk ,
You've had several good answers so i had this alternative just for fun and to point at one of the Perl mottos : TIMTOWTDI !!!
Using the same idea to quickly read all the lines but with using the special array @_
open (FILE,"your file"); @_=<FILE>; close(FILE); print pop;
There you go ...
the little one
In reply to Re: Print last line in a file
by nehlwyn
in thread Print last line in a file
by dreman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |