Re: Quick TXT document stuff

From: Date: Thu, 30 Aug 2001 13:36:54 +0000
Subject: Re: Quick TXT document stuff
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-65267@lists.php.net to get a copy of this message
Fast and dirty: function readnlines($filename, $count) { return array_slice(file($filename), 0, $count); } readnlines('file.txt', 5); should work, "Kyle Smith" <dbzno1fan@hotmail.com> wrote in message news:OE52m5UxP9Fekzabtne0000034e@hotmail.com... Ok im like in a realy hurry here, so can someone please tell me (or show) how i make a script read the first (top) 1 or 5 lines from a text document? Thanks! -lk6- http://www.StupeedStudios.f2s.com Home of the burning lego man! ICQ: 115852509 MSN: dbzno1fan@hotmail.com AIM: legokiller666

« previous php.general (#65267) next »