bonjour à tous,
j'ai un problème qui me dérange depuis un bon bout.
je veux mettre ce fichier texte

|Num du |Intitulé compl |
|compte |et du compte |
|------- |------------- |
|101000 |Capital social |
|------- |------------- |
|123000 |Réserves facul |
| |tatives et ext |
| | raordinaires |
|------- |------------- |
partir d'un code java sous la forme suivante pour pouvoir l'importer sous excel


Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
Num du compte   Intitulé complet  du compte
101000                Capital social
123000                Réserves facultatives et extraordinaires
voici le code en question

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
String b= source_file.readLine();
while(b!=null){
 
String a = source_file.readLine();
String c = source_file.readLine();
	if( a!=null && (a.startsWith("|0") || a.startsWith("|1") ||                    a.startsWith("|2")|| a.startsWith("|3") || a.startsWith("|4")||a.startsWith("|5")|| a.startsWith("|6") || a.startsWith("|7")|| a.startsWith("|8")|| a.startsWith("|9")) ){
 
			int_compte=a;	
			int_compte = int_compte.substring(9, 24);
			x=int_compte;
									        }
	while( c.startsWith("|     ")){
		 dev=x+c.substring(9, 24);
		 System.out.println(dev+"\r\n");
		 dest_file.writeBytes(dev+"\r\n");
								  }
 
				}
Je n’arrive toujours pas à transformer ce texte.
J'ai besoin de l'aide s'il vous plait.
Merci d'avance..