Larry Bates wrote:
> I guess my approach would be different. To eliminate any race
> conditions, I would keep a small text file that always contained
> the next filename that is to be written. Something like:
>
> nextfiletowrite=/path/filename006.dat
>
> I would try to get a lock on this file, r
[EMAIL PROTECTED] wrote:
> Here is a code fragment, where I am trying to copy a file, avoiding
> overwrites and race conditions. The filename gets a '02','03','04' etc
> appended to the end if a file with that name already exists.
>
> I know the writing of the single space is overkill, but I am s