Re: file pointer
| From: | Adam Voigt | Date: | Tue, 01 Jul 2003 16:43:36 +0000 |
| Subject: | Re: file pointer | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-153581@lists.php.net to get a copy of this message | ||
$data = file('c:\blah.txt');
$lineyouwant = $data[(count($data)-1)];
Not necessarily most efficient, but it works.
> At 10:59 AM 7/1/2003 -0500, Kyle Babich wrote:
> >How would I set the file pointer to the very end of the last line of the
> >file?
> >
> >ex. ahkjhff
> >asdjfhlkajf
> >sdfhaksljdh
> >kasjdhkjlfh
> >asdjfhklajs
> >askjdhjfdjf//here
> >
> >Thanks,
> >--
> >Kyle
> >
> >--
> >PHP General Mailing List (http://www.php.net/)
> >To unsubscribe, visit: http://www.php.net/unsub.php
--
Adam Voigt (adam@cryptocomm.com)
Linux/Unix Network Administrator
The Cryptocomm Group