title: Reading and writing .csv file with newline
body: <p>I have a .csv file that looks like this:</p>
  
  <pre><code>Col1,Col2,Col3,Col4,Col5
  1,2,3,4,5
  </code></pre>
  
  <p>I am doing something like this:</p>
  
  <pre><code>//Read stream
  File myFile = new File("C:\\testFile.csv");
  InputStreamReader isTest = new InputStreamReader(myStream);
  StringBuilder sbTest = new StringBuilder();
  BufferedReader brTest = new BufferedReader(isTest );
  String readTest = brTest.readLine();
  
  while(readTest != null) {
      sbTest .append(readTest);
      readTest = brTest.readLine();
  }
  
  //Write stream
  
  FileWriter fwTest = new FileWriter(myFile .getAbsoluteFile());
  BufferedWriter bwTest = new BufferedWriter(fwTest);
  
  bwTest .write(sbTest.toString());
  bwTest .close();
  </code></pre>
  
  <p>However, when I open the file, I see the following CSV:</p>
  
  <pre><code>Col1,Col2,Col3,Col4,Col51,2,3,4,5
  </code></pre>
  
  <p>Is there a way to parse the newline and make sure that is appended when I write to a file?</p>