Java: Lister un répertoire

Author:

 list, list
{filelink=124}

/**
  Afficher le contenu d'un répertoire
 */

public class LsRep
{

    public static void main(String arg[])
    {
        // Lister les noms des contenus du répertoire courant
        String[] dir = new java.io.File(".").list( );

        for (int i=0; i
    

Leave a Reply

Your email address will not be published. Required fields are marked *