Bonjour,

les classes faissant appel aux ressources fichier possédent plusieurs constructeurs possédant comme paramètres soit un obbjet File, soit une String du nom du fichier.
FileInputStream(File file)
Creates a FileInputStream by opening a connection to an actual file, the file named by the File object file in the file system.
FileInputStream(FileDescriptor fdObj)
Creates a FileInputStream by using the file descriptor fdObj, which represents an existing connection to an actual file in the file system.
FileInputStream(String name)
Creates a FileInputStream by opening a connection to an actual file, the file named by the path name name in the file system.
Y a t il des différences entre ceux-ci ? sont ils équivalents ? Quels sont ceux qui permettent d'éviter le maximum d'erreurs ?

Merci.