>
>fh=fopen(filetopack,12)
>if fh>0 and fclose(fh)
> ** Ok to open exclusively
>endif
>
>But the error checking approach is more reliable and more generic.
I don't know about "more generic" Nadya, the one reason I still use this technique is that I've used it in every language I've programmed in since mainframe days, even those without any error handlers. It's almost identical to code in any language, ultimately transportable. For that reason, I would say this method is more generic...
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.