Re: Re: read file from specific line
| From: | John Nichel | Date: | Thu, 27 Jan 2005 18:44:33 +0000 |
| Subject: | Re: Re: read file from specific line | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-207521@lists.php.net to get a copy of this message | ||
John Coppens wrote:
On Thu, 27 Jan 2005 15:15:48 +0100 (CET) gustav@varupiraten.se wrote:The file() function will do this. http://us4.php.net/file -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 john@kegworks.comHi there! Is there any way reading a file from a specific line? (textfile) /G @varupiraten.seNot directly - there's no way to know where the line starts, except if they are all of the same length. Read the file, split it on \n's, and then use it as an array.