Subject: Re: Determine if a File is Open
Probably the easiest way is just trying to open it and trapping the error.
So assuming you know the file exists then
lnHandle = fopen(lcMyFileName)
if lnHandle = -1
* -- The file couldn't be opened so is open somewhere else.
else
f
Probably the easiest way is just trying to open it and trapping the error. So
assuming you know the file exists then
lnHandle = fopen(lcMyFileName)
if lnHandle = -1
* -- The file couldn't be opened so is open somewhere else.
else
fclose(lnHandle)
endif
To close it you would ha
2 matches
Mail list logo