in reply to Looking for a better way to get the number of lines in a file...

The probably shortest version is in this Golf-node (which -if I may add a little criticism- is just a few days old).

A quick search finds How do I count the number of lines in a file? and How do I find the total number of lines in a file?, too. Maybe next time you'll do a little research first :-)

Regards... Stefan
you begin bashing the string with a +42 regexp of confusion

  • Comment on Re: Looking for a better way to get ...