Finding CRLF in string
<p>I have a file and I want to read in the string on each line. If the line does not end in CRLF (\r\n), I want to to print something. I made this file by redirecting output from print commands similar to the following.</p>

<pre><code>System.out.println("Test\r\n");
</code></pre>

<p>But when I read this line in from the file using buffered reader, it doesn't seem like it catches the CRLF.</p>

<p>I use the following to detect the crlf (where inputline is the line that has been read in).</p>

<pre><code>if(inputline.indexOf("\r\n")&lt;0)
</code></pre>

<p>It never detects the \r\n. How can I remedy this? Is this an issue with buffered reader?</p>
