FCloseAll
Function FCloseAll()
Returns true (1) in all cases. Whether files are open or not.
Syntax FCloseAll()
Remarks
FCloseAll is just what it says. It closes all files by a script opened using FOpen.
See Also:
FClose FOpen File and Directory functions
Example Script
NUMBER x = 1,i
STRING a = "*.*"
a = FINDFIRST(a)
WHILE LEN(a)
IF FOPEN(x,a) THEN ' x contains 1 on the first pass
x ++ ' Increment x to a different file index
ENDIF
a = FINDNEXT()
WEND
x --
PRINT "Opened "; x; " files - haven't closed any yet"
FCLOSEALL()
PRINT "All files are closed. - All indexes can be reused."
Script Output
(your results may be different)
Opened 47 files - haven't closed any yet
All files are closed. - All indexes can be reused.