C# Streamreader - Break on {CR}{LF} only
<p>I am trying to count the number of rows in a text file (to compare to a control file) before performing a complex SSIS insert package.</p>

<p>Currently I am using a StreamReader and it is breaking a line with a {LF} embedded into a new line, whereas SSIS is using {CR}{LF} (correctly), so the counts are not tallying up.</p>

<p>Does anyone know an alternate method of doing this where I can count the number of lines in the file based on {CR}{LF} Line breaks only?</p>

<p>Thanks in advance</p>