title: How to append text in a csv file at the end of each line Java?
body: <p>I have a csv file with testdata:</p>
  
  <pre><code>31-September-2017 01:52:57 02:11:25
  31-September-2017 01:52:57 02:11:25
  </code></pre>
  
  <p>I want to write the test result(PASS/FAIL) for every line of data at the end of each line, like this:</p>
  
  <pre><code>31-September-2017 01:52:57 02:11:25 PASSED
  31-September-2017 01:52:57 02:11:25 FAILED
  </code></pre>
  
  <p>I am using openCSV api to read the file content. When I open the same file using CSVWriter, it is deleting all the contents of the file. Used BufferedWriter as well, same problem.</p>
  
  <p>Please suggest me how I can achieve this with the original contents of file remaining same, and appending the test result at the end of each line. Thanks.</p>