Re: Traversing an appendable file

From: Date: Thu, 25 Jul 2002 16:38:07 +0000
Subject: Re: Traversing an appendable file
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-109539@lists.php.net to get a copy of this message
On Sun, Jul 21, 2002 at 08:50:15PM -0400, Chris Earle wrote: > Is there any way to fseek (or something to the exact same effect) a file > opened with "a" or "a+"? > > I've tried rewinding and fseeking appendable files, but neither work. > > Opening up in "r+" gives me part of the desired result, but if where I want > to write is not at the end, it writes over things, which I obviously do not > want. Go to the archives, http://groups.google.com/ and look up the thread on the php-general list entitled "Editing files by line" --Dan -- PHP classes that make web design easier SQL Solution | Layout Solution | Form Solution sqlsolution.info | layoutsolution.info | formsolution.info T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y 4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409

« previous php.general (#109539) next »