[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Applesoft/Prodos/ONERR GOTO/File existence question



I posed the question:
> 2)  Is there a better way from a BASIC program to determine the existence
>     of a file?

It occurs to me that instead of trying to open the file (which will create
it if it doesn't already exist), a better approach may be to UNLOCK the
file, which will fail if it doesn't exist.  However, if the file existed
and was locked, it will now be unlocked, which may not be desirable.