$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 ([EMAIL PROTECTED]) Linux/Unix Network Administrator The Cryptocomm Group -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php