rendered paste bodypackage Yamanelow;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
/**
* @author Yann
*
*/
public class YamanelowExo2 {
public static void main (String[] args)
{
String _file = "C:\\Users\\Yann\\Documents\\Eclipse Workspace\\Tests\\Yamanelow\\YamanelowExo2.txt";
try
{
InputStream fluxFichier = new FileInputStream (_file);
System.out.println (fluxFichier.read());
fluxFichier.close ();
}
catch (IOException e)
{
// Exception déclenchée si un problème survient pendant l'accès au fichier
System.out.println (e);
}
}
}