How to skip carriage return as line breaker while reading a file in java
<p>I am reading a text file using <code>BufferedReader.readLine()</code> in java. My text file was created with hidden line breaks. My question is I need to skip carriage return (<code>\r</code>) as line break, only need to consider line feed (<code>\n</code>) as line breaker.</p>

<p>How can I achieve this?</p>