title: For Text, Appending is not happening in word doc (.docx) in Java Code
body: <p>I have tried using below code to append the content present in word doc:</p>
  
  <pre><code>    XWPFDocument doc=new XWPFDocument();
      XWPFParagraph para=doc.createParagraph();
      XWPFRun run=para.createRun();
      File f=new File("Text.docx");
      FileOutputStream fos=new FileOutputStream(f, true);
      run.setText("Append The value please");
      doc.write(fos);
  </code></pre>
  
  <p>But, after completion of program, when I try to open the file, it says "<strong>We're sorry. We can't open the file. We found a problem with its content</strong>" . </p>
  
  <p>I am using below jars:
  1.  Poi 3.12
  2.  Poi -ooxml-3.10.1
  3.  Poi-scratchpad-3.15
  4.  Ooxml-schemas-1.1
  5.  Xmlbeans-2.3.0
  6.  Dom4j-1.1</p>
  
  <p>what is the reason of this &amp; what could be the solution to avoid this?</p>