How to read CheckBox out of a text file WPF : <p>Well i have figured out how to save a checkbox value into a text file but now i need to now how to read it an load the settings for de application.</p>

<pre><code>private void Load_Click(object sender, RoutedEventArgs e)
        {
            OpenFileDialog ofd = new OpenFileDialog();
            if (ofd.ShowDialog() == true)
            {
                using (StreamReader read = new StreamReader(File.OpenRead(ofd.FileName)))
                {
                    TBSOMS.Text = read.ReadLine();
                    TBWVB.Text = read.ReadLine();
                    TBWNB.Text = read.ReadLine();
                    TBASPMM1.Text = read.ReadLine();
                    TBASPMM2.Text = read.ReadLine();
                    TBDUM.Text = read.ReadLine();
                    TBADPR.Text = read.ReadLine();
                    TBAR.Text = read.ReadLine();
                    // Not working part
                    CBXY1.IsChecked = read.ReadLine();

                    read.Close();
                    read.Dispose();
                }
            }
        }  
</code></pre>

<p>everything works properly except the checkbox value and i cant figure out how to fix it</p>
