Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Locked files
Message
 
 
To
01/11/2001 11:53:49
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00576226
Message ID:
00576306
Views:
14
This message has been marked as the solution to the initial question of the thread.
>
>I'm trying to read a file as soon as it is free from being written to by another application. Any ideas on how to do this? Thank you.
>

You can use FOPEN() function to check if a file has been released by another program
lnFileHandle = FOPEN('myfile.txt',12)  
IF lnFileHandle < 0  
	* Cannot open file 
ELSE  
	* File is created. Let's use it
	=FCLOSE(lnFileHandle)  
ENDIF
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform