Bonjour,

je viens d'installer Eclipse que je decouvre, et j'ai taper mes premieres ligne de code fierement ...
Mais j'ai un soucis avec un fichier qu'il refuse obstinement de trouver alors que le chemin specifie est correct et que le fichier esta limente !?

Voici mon code :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
public static void main(String[] args) throws IOException {
		// TODO Auto-generated method stub
 
		Scanner diskScanner = new Scanner (new File ("C:\\Documents and Settings\\workspace\\MonProjet1\\EmployeInfo.txt"));
Il me sort ceci :
Exception in thread "main" java.io.FileNotFoundException: C:\Documents and Settings\workspace\MonProjet1\EmployeInfo.txt (Le fichier spécifié est introuvable)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(Unknown Source)
at java.util.Scanner.<init>(Unknown Source)
at DoPayroll.main(DoPayroll.java:14)


Je suppose que ca doit etre tout con, et j'attends donc vos reponses ....

merci d'avance .