| [java] ecrire dans un fichier sans ecraser par karine |
mardi 21 juin 2005 à 11:40:17 |
|
salut,
apres une petite recherche sur la javadoc, j'ai vu qu'il existait une surcharge du constructeur avec un 2e argument booleen pour savoir s'il faut ajouter ou remplacer. ton code devient :
BufferedWriter sortie = new BufferedWriter(new FileWriter("mots.txt", true));
sortie.write(url+"\n");
voila, voila Le point commun entre l'informatique et l'alcool ? - ça fait mal à la tête. :P |
| 17/09 14h23 | [java] Ecriture fichier sous AIX | Programmation | 17/09 15h49 | 4 |
| 18/06 16h34 | Java écrire fichier sur réseau | Programmation | 18/04 11h30 | 1 |
| 21/05 18h40 | Java : ecriture fichier bit a bit | Programmation | 14/11 21h20 | 3 |
| 18/01 16h26 | upload : ecraser fichier existant | Programmation | 18/01 17h19 | 2 |