Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to close file opened with FOPEN() after abnormal ter
Message
De
08/07/2005 13:34:29
 
 
À
08/07/2005 06:52:24
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01030321
Message ID:
01030617
Vues:
14
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform