FILE_FIND_CLOSE

FILE_FIND_CLOSE

ENDS THE ACTIONS FILE_FIND_FIRST$ AND FILE_FIND_NEXT$ ON THE CURRENT DIRECTORY

  • Type: Command
  • Parameter: 0
  • Group: Files

ACTION

The command FILE_FIND_CLOSE frees the resource used by the actions FILE_FIND_FIRST$ and FILE_FIND_NEXT$.

SYNTAX: FILE_FIND_CLOSE

USE

  • The command FILE_FIND_CLOSE ends the finding of file names in a directory.

ERROR

  • If FILE_FIND_FIRST$ has not been used first.

EXAMPLE

dim a$

print "content of the current directory :":print

print file_find_first$

a$=file_find_next$

while a$<>"_"

print a$

a$=file_find_next$

end_while

file_find_close

SEE ALSO

FILE_FIND_FIRST$

FILE_FIND_NEXT$