convertir indentation wordpad pour .txt(blocnote et autres)
Bonjour
Code:
1 2 3 4 5 6 7 8 9 10 11 12
|
PowerPointExtractor truc = new PowerPointExtractor(nomtraitement);
monparser.texteparse = truc.getText();
monparser.texteparse = monparser.texteparse.replaceAll(""," ");
monparser.texteparse = monparser.texteparse.replaceAll("\n","\n");
...
if (monparser.texteparse.length() > 1){
progressinfo.setString("sauvegarde des fichiers du résultat : "+a+" "+moteur);
lien = new FileOutputStream(path+"/"+moteur+" ("+langagechoisi+")/"+"lien"+a+".txt"); //création du fichier stockant le contenu de l'url
lien.write((url+"\r\n\r\n"+monparser.texteparse).getBytes());
lien.close();
} |
Voila lorsque je parse un fichier .doc et/ou .ppt ,je stocke la String resultat puis je l'enregistre dans un fichier .txt
Mon problème est que ce fichier n'est lisible que par wordpad (plein de petit carrés avec notepad), est-il possible de convertir l'indentation pour qu'il soit lisible par n'importe quel editeur de texte notament notepad ???
please help