Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void closeDico(HashMap<String, String []> dico, String [] newTableFr, int compteur2)throws IOException{
- int compteurTmp = 0;
- for(int i = this.compteur; i < compteur+compteur2; i++){
- tableFr[i]=newTableFr[compteurTmp];
- System.out.println(tableFr[i]);
- compteurTmp++;
- }
- FileWriter f1 = new FileWriter("C:\\Users\\Dylan\\Documents\\monFichier.txt");
- for(int i = 0; i < compteurTmp; i++){
- String string [] = dico.remove(tableFr[i]);
- String compilation = tableFr[i]+"#";
- for(int j = 0; j < string.length; j++){
- compilation += string[j]+"_";
- }
- compilation += "!";
- f1.write(compilation);
- }
- f1.close();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement