Date: Mon, 27 Mar 2000 11:28:00 +0200 (MET DST) From: pad2369 Message-Id: <200003270928.LAA16362@maggiore.iperbole.bologna.it> To: djgpp AT delorie DOT com References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 8bit 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 : > 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