>is there a way for VFP to determine if a text file is in use? we work a lot with text files and i use the file() function often to see if a file exists. i also use the used() function to determine if tables are in use. so i guess i am looking for a textfileused() function.
>
>thnx,
>
>vm
Try to open lowlevel. If you can than is not in use. ie:
local llInUse
lnHandle = fopen('myFileName.txt',12)
if lnHandle > 0
fclose(lnHandle)
else
if ferror() = 5
llInUse = .t.
else
endif
endif
Cetin