fopen() question
| From: | Jose Jeria | Date: | Tue, 04 Jun 2002 13:17:28 +0000 |
| Subject: | fopen() question | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-100556@lists.php.net to get a copy of this message | ||
What I want to do is to the save a file with its new content, but when i
save the file
and the new content is less than it was before i opened it, you can see the
old content
after the new shorter content. How can i avoid this?
Now using:
$fd = fopen($arrFileName, "r+");
fwrite($fd, $arrFileContent);
fclose($fd);
/Jose Jeria