title: Fastest way to write huge data in text file Java
body: <p>I have to write huge data in text[csv] file. I used BufferedWriter to write the data and it took around 40 secs to write 174 mb of data. Is this the fastest speed java can offer?</p>
  
  <pre><code>bufferedWriter = new BufferedWriter ( new FileWriter ( "fileName.csv" ) );
  </code></pre>
  
  <p><strong>Note:</strong> These 40 secs include the time of iterating and fetching the records from resultset as well. :) . 174 mb is for 400000 rows in resultset. </p>