On Thu, 21 Mar 2002, Mauricio Sthandier wrote: > I could append but then I need to read the first 8 chars of the last line I > appended... neither something I know how to do.
Seek to the end of the file minus typical record length, read, look for the penultimate end-of-record delimiter (\n, probably) in there, and you've found your final record. If you don't find a delimiter, read some more and tack it onto the beginning of your string, then check again. Repeat until batter contains no large lumps. miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php