c# search string in txt file
<p>I want to find a string in txt file if string compares, it should go on reading lines till another string which I'm using as parameter.</p>

<p>Example:</p>

<pre class="lang-none prettyprint-override"><code>CustomerEN //search for this string
...
some text wich has details about customer
id "123456"
username "rootuser"
...
CustomerCh //get text till this string
</code></pre>

<p>I need the details to work with them otherwise.</p>

<p>I'm using linq to search for "CustomerEN" like this:</p>

<pre><code>File.ReadLines(pathToTextFile).Any(line =&gt; line.Contains("CustomerEN"))
</code></pre>

<p>But now I'm stuck with reading lines (data) till "CustomerCh" to extract details.</p>
