Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to close file opened with FOPEN() after abnormal ter
Message
From
08/07/2005 13:34:29
 
 
To
08/07/2005 06:52:24
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01030321
Message ID:
01030617
Views:
13
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
Previous
Reply
Map
View

Click here to load this message in the networking platform