hi
i wana save the radioo button which user cheched to a file i wrote this code but it dosnt work... can anyone help to found the problem:
private void button1_Click(object sender, EventArgs e)
{
FileStream fs = new FileStream(Path1,FileMode.Append,FileAccess.Write);
fs.Close();
StreamWriter Wr = new StreamWriter(Path1);
if (radioButton1.Checked)
{
Wr.Write(radioButton1.Text);
check1++;
result1++;
}
if (radioButton2.Checked)
{
Wr.Write(radioButton2.Text);
check1++;
}
if (this.radioButton2.Checked == false)
if (radioButton1.Checked == false)
{
check1 = 0;
}