Re: renaming files
Re: renaming files
- Subject: Re: renaming files
- From: Pelle Johansson <email@hidden>
- Date: Sat, 26 May 2001 00:47:17 +0200
On fredag, maj 25, 2001, at 10:37 , Steve Gehrman wrote:
How do I rename a file? I can't seem to find an API do do this. I
tried moving the file to the same directory with a different name, but
that didn't seem to work.
Hmm, that's weird, because that's how you do it. The system call is even
called rename().
I don't know what you used, but perhaps you can use that call directly
instead? (notice that rename() removes the target if it already exists.)
--
Pelle Johansson
<email@hidden>