Verifier la lisibité d'un fichier en java

Bonjour,
je cherche un e methode java pour verifier q'un fichier est lisible ou pas

merici d'avance pour votre aide
Configuration: Windows XP Internet Explorer 6.0

1 réponse

  1. salut,

    java.io
    Classe File, méthode canRead()

    canRead
    public boolean canRead()Tests whether the application can read the file denoted by this abstract pathname.

    Returns:
    true if and only if the file specified by this abstract pathname exists and can be read by the application; false otherwise

    Cordialement,

    Dan

    Discussions similaires

    question pix mot caché

    7 réponses