Posted By

nialace on 11/24/10


Tagged


Versions (?)

Write file


 / Published in: Java
 

  1. File multiUserFile = new File(filepath);
  2.  
  3. try {
  4.  
  5. BufferedWriter ficTexte = new BufferedWriter(new FileWriter(multiUserFile));
  6. ficTexte.write("singlepath=false"+System.getProperty("line.separator"));
  7. ficTexte.write("multiuser=false"+System.getProperty("line.separator"));
  8. ficTexte.close();
  9.  
  10. }
  11. catch (IOException e) {
  12. e.printStackTrace();
  13. }

Report this snippet  

You need to login to post a comment.