... or, if the file is HUGE and you don't want to read it all into RAM using file(), you could open the file using fopen() and read line-by-line until you get to the one you want. (or use fseek() fread() funcs to grab a big chunk of text at once and then count the newlines, and loop until you find the line you want)
TIMTOWTDI :-) -- Scott Hurring Systems Programmer EAC Corporation scott (*) eac.com -- <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > 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 > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php