Re: [newbie] easy question about fopen ("$filename", "r+")
| From: | Christian Reiniger | Date: | Wed, 07 Feb 2001 11:16:07 +0000 |
| Subject: | Re: [newbie] easy question about fopen ("$filename", "r+") | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-38526@lists.php.net to get a copy of this message | ||
On Wednesday 07 February 2001 09:42, SED wrote:
> If I load e.g. textfile.txt with the file pointer at the beginning of
> the file and write a line or two into it, does it always overwrite the
> first lines?
Yes
> Is there any function that *always* moves the old lines
> down automatically?
No. You'll have to code that yourself (read file - add lines - write file)
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
"Software is like sex: the best is for free" -- Linus Torvalds