Might not be the most secure way, but very fast...

$lines = `cat file.txt | wc -l`

That will give you the number of lines...but again not the best
method...


On Mon, 2002-12-09 at 09:58, [EMAIL PROTECTED] wrote:
> Hey guys, I've been searching the manual for a way to grab the number of 
> lines in a file and read a particular line from it, however I found no 
> solution to my problem so I'm wondering if any of you out there could help me 
> :-)
> 
> - CS
-- 

Ray Hunter
email:  [EMAIL PROTECTED]
www:    http://venticon.com


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to