Re: fwrite(): can this function append to the middle of a file?
| From: | Chris | Date: | Thu, 16 Aug 2007 06:46:48 +0000 |
| Subject: | Re: fwrite(): can this function append to the middle of a file? | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-43912@lists.php.net to get a copy of this message | ||
joefazee wrote:
Can i write to the middle of a file using the fwrite() function like ------------------- line one line two line three -------------------- and maybe the next day i want to write in between line two and line three.Read in the whole file. Put the line in the middle manually. Write the whole file out again. fwrite itself doesn't have the functionality you want. -- Postgresql & php tutorials http://www.designmagick.com/