Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to determine if a text file is in use
Message
From
10/08/2003 18:11:15
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
10/08/2003 18:02:48
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00815356
Message ID:
00818760
Views:
20
>A better question might be, HOW to determine the low-level Handle of a Text file that is already open?
>
>Obviously we can use FOPEN() to retrieve an error code, and FERROR() likewise. However there seems to be no way to access a file which was previously opened... and no way to close it, or otherwise re-Open with a new Handle.

That's right, if you accidentally left it open, you are in trouble. Therefore, you should apply clean programming, and close the file as soon as you don't need it any longer.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform