C# save list to binary file
<p>i have a button in my form that is supposed to take a list and save it to binary file on click. i compile and run the program enter the valued in the text box and click the save button. i look in the project directory and there is no new file. did i code it wrong or miss something?</p>

<pre><code>private void button1_Click(object sender, EventArgs e)
{
    List&lt;ore&gt; oreData = new List&lt;ore&gt;();
    oreData.Add(b1);
    oreData.Add(b2);

    FileStream fs = new FileStream("ore.dat", FileMode.Create);
    BinaryFormatter bf = new BinaryFormatter();
    bf.Serialize(fs, oreData);
    fs.Close();
}
</code></pre>
