Java: Verifier l’existance d’un fichier

Author:

 fichier, java
Download

import java.io.*;
 
public class Fichier_Exis
{
  public static void main(String args[])
  	{
    File f = new File("c:/sakoba.txt");
    System.out.println      (f + (f.exists()? " existe " : " n'existe pas "));
  }
}