Amiga-C (117/223)

From:Gunther Nikl
Date:15 Aug 2001 at 08:42:12
Subject:[amiga-c] Re: How do I copy clone

On Sat, Aug 11, 2001 at 09:57:57AM +0600, Jack York wrote:
> Open from
> Open to
> Copy (from, to)
> if (do_clone) SetFileDate()
> Close to
> Close From
>
> I moved the Close to code to before the SetFileDate and now it works.
> Thanks for the help.

Move both Close before the if since you should release resources if you
don't need them anymore. SetFileDate() failed because Open(..,MODE_NEWFILE)
implies exclusive access to a file.

Gunther

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/