How to set a checkbox based on a string : <p>I have a function which reads some data from a txt file and than writes the data into my project.</p>

<p>My problem is that i can't fill my checkboxes because they don't recognize strings.</p>

<p>For example</p>

<pre><code>CheckBox1.IsChecked = File.ReadLines(filename).Skip(0).Take(1).First();
</code></pre>

<p>It says that a string can't be converted into a bool value.</p>

<p>The first line in my txt file is obviously false in this example so the Output is not the problem.</p>
