Java: Obtenir le répertoire courant

Author:

 java
{filelink=7960}

import java.io.IOException;

public class Ex_Rep
{
  public static void main(String[] argv) throws IOException
  {

   // Retourner le chemin complet du répertoire de travail
    String curDir = System.getProperty("user.dir");
    System.out.println ("Le répertoire courant est: "+curDir);
  }
}

Leave a Reply

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