|
This page contains an archived post to the Design Forum (formerly called the Flexible Java Forum) made prior to February 25, 2002.
If you wish to participate in discussions, please visit the new
Artima Forums.
Message:
Probl�me �criture FICHIER
Posted by servane on January 03, 2001 at 11:57 AM
Pourrais tu me dire comment tu fait pour �crire � la suite d'un fichier? Tu vois j'ai un programme, � la premi�re �xecution je cr�e le fichier, et � la seconde j'aimerais ne pas �craser ce fichier et �crire � la suite. Aide moi vite, stp. GRAND MERCI SI TU M AIDES ou si tu me dits o� je peux trouver de la doc... protected void gestionDeFichier(Vector memoPartie) throws IOException { FileWriter fr=null; File f=new File( "FichierPartiePerdante.txt"); if (f.exists()==false) fr=new FileWriter(f); else ????? PrintWriter descripteurDuFichierPartiePerdante=new PrintWriter (fr); descripteurDuFichierPartiePerdante.println("test1"); descripteurDuFichierPartiePerdante.println("nnsfd"); descripteurDuFichierPartiePerdante.println("nnsffd"); descripteurDuFichierPartiePerdante.close(); }
Replies:
|