Verifier la lisibité d'un fichier en java
alffouss
Messages postés
150
Statut
Membre
-
danimo -
danimo -
Bonjour,
je cherche un e methode java pour verifier q'un fichier est lisible ou pas
merici d'avance pour votre aide
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
-
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