get specified line from text using readline method
<p>I want to get a specified line from text using ReadLine method</p>

<p>Here is my code</p>

<pre><code>for (int p = 0; p &lt; 100; p++)
{
    var files = await ApplicationData.Current.LocalFolder.GetFileAsync(logid.Text + ".txt");
    var lines = await FileIO.ReadLinesAsync(files);
    var pattern = sm.SelectedItem.ToString();
    var sline = lines[p].Contains(pattern);

    lv.items.add(lines[sline]);
}
</code></pre>

<p>The problem is <code>var sline</code> is not converted into int so lines cannot read it.</p>

<p>The actual program is to add text only from line contained pattern from a selected combobox.</p>
