>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.
Yes,
But this is a bad programming. If you need a variable somewhere else then you need a way to keep it in scope.
Sergey's suggestion of listing status works to a point. It lists the files as shortened for display paths. IOW you might be closing the wrong one.
lnMAX = 32767
for ix=1 to lnMAX
fclose(ix)
endfor
works to close all opened. Might get handles from list status output.
Cetin