Re: Re: read file from specific line

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



John Coppens wrote:
On Thu, 27 Jan 2005 15:15:48 +0100 (CET)
gustav@xxxxxxxxxxxxxx wrote:


Hi there!

Is there any way reading a file from a specific line? (textfile)

/G
@varupiraten.se


Not 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.

The file() function will do this.

http://us4.php.net/file

--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
john@xxxxxxxxxxxx

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux