If the program has terminated, the file should not be locked, you should be able to delete it.
What I do is FCREATE files and check return value. If it is -1 file is still locked. If the program craps out and you restart, you should be able to FCREATE the file again.
PF
>I am accessing a file with FOPEN().
>
>During development if there is an abnormal termination procedure cannot be run again because file is in use. How do I close that file if I no longer have the file handle?
>
>Thanks,
>
>Alex
(On an infant's shirt): Already smarter than Bush