title: CSV retain CRLF while replacing LF
body: <p>I have a csv file as follows (control characters in bold)</p>
  
  <pre>
  "ID","NAME","CLASS"<b>CRLF</b>
  "1","JOHN X","A"<b>CRLF</b>
  "2","DOE<b>LF</b>
  Y","B"<b>CRLF</b>
  "3","OTHER S", "D"<b>CRLF</b>
  </pre>
  
  <p>Please note that line 3 ends with LF and not CRLF. While reading this CSV file in Java, I get 5 lines instead of 4 (header line + 3 data line). Is there a way I could replace LF with space while retaining CRLF (either massage the input file or change java code). I did lot of googling and I could see that every solution replaces LF along with CRLF.</p>
  
  <p>Thanks</p>