Re: file writing question
| From: | Jason Wong | Date: | Tue, 13 Jan 2004 22:27:04 +0000 |
| Subject: | Re: file writing question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-174490@lists.php.net to get a copy of this message | ||
On Tuesday 13 January 2004 06:47, Timmy wrote:
> Since the incremented number is at 3, there should be 3 timestamps in a
> "stack" order. Overwriting the sole number for incrementing or
> decrementing is no problem. However, inserting a new timestamp is where I
> get stuck. The current timestamp is over-written rather than inserting a
> new one.
You cannot insert stuff when writing to an existing file. Basically you need
to read in the file, do your insert, then write it all out again.
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
Pick another fortune cookie.
*/