delorie.com/archives/browse.cgi | search |
Date: | Mon, 27 Mar 2000 11:28:00 +0200 (MET DST) |
From: | pad2369 <pad2369 AT iperbole DOT bologna DOT it> |
Message-Id: | <200003270928.LAA16362@maggiore.iperbole.bologna.it> |
To: | djgpp AT delorie DOT com |
References: | <jcsD4.4971$jX3 DOT 69233 AT typhoon DOT nyroc DOT rr DOT com> |
In-Reply-To: | <jcsD4.4971$jX3.69233@typhoon.nyroc.rr.com> |
MIME-Version: | 1.0 |
User-Agent: | IMP/PHP3 Imap webMail Program 2.0.11 |
Sender: | pad2369 AT iperbole DOT bologna DOT it |
Subject: | Re: files |
Reply-To: | djgpp AT delorie DOT com |
Quota John <fubu36 AT stny DOT rr DOT com>: > I am trying to make a database. The only way I could come up with to update > a file was to write a new one from the current one inserting then new stuff > at the right place. Aftrer this is done how would I delete the old file and > rename the new one to the correct name? thanks You can use unlink() to remove files and rename() / _rename() to rename files. Talking about portability, I am sure unlink() is posix, while I am not sure about rename()... ciao Giacomo ---------------------------------------------------- Giacomo Degli Esposti - pad2369 AT iperbole DOT bologna DOT it
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |