title: Java IO : Writing into a text file line by line
body: <p>I have a requirement where i need to write a text file line by line.
  The number of lines may be up to 80K . I am opening the file output stream and inside a for-loop , iterating a list and forming a line and writing the line into the file.</p>
  
  <p>This means 80K write operations are made on the file . </p>
  
  <p>Opening and writing the file very frequently hinders performance.
  Can anyone suggest a best way yo address this requirement in Java IO?</p>
  
  <p>Thanks.</p>