FILE_FIND_CLOSE

FILE_FIND_CLOSE

TERMINE LES ACTIONS FILE_FIND_FIRST$ ET FILE_FIND_NEXT$ SUR LE RÉPERTOIRE COURANT


  • Type : Commande
  • Paramètre : 0
  • Groupe : Fichiers


ACTION

La commande FILE_FIND_CLOSE libère la ressource utilisée par les actions FILE_FIND_FIRST$ et FILE_FIND_NEXT$.


SYNTAXE : FILE_FIND_CLOSE


UTILISATION

  • La commande FILE_FIND_CLOSE termine la recherche des noms de fichier dans répertoire.

ERREUR

  • Si FILE_FIND_FIRST$ n'a pas été utilisé d'abord.

EXEMPLE

FILE_FIND_CLOSE.bas
dim a$
print "contenu du répertoire courant :":print
print file_find_first$
a$=file_find_next$
while a$<>"_"
 print a$
 a$=file_find_next$
end_while
file_find_close

EN RAPPORT

FILE_FIND_FIRST$

FILE_FIND_NEXT$