Verifier la lisibité d'un fichier en java

alffouss Messages postés 125 Date d'inscription   Statut Membre Dernière intervention   -  
 Utilisateur anonyme -
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
 
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