Verifier la lisibité d'un fichier en java

Fermé
alffouss Messages postés 121 Date d'inscription mercredi 15 octobre 2008 Statut Membre Dernière intervention 20 octobre 2021 - 21 août 2009 à 12:06
 Utilisateur anonyme - 21 août 2009 à 19:51
Bonjour,
je cherche un e methode java pour verifier q'un fichier est lisible ou pas

merici d'avance pour votre aide
A voir également:

1 réponse

Utilisateur anonyme
21 août 2009 à 19:51
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
0