problems reading and writing to a Resources file
<p>So, to make a long story short, the code doesn't work. What I tried to do here was to write and read to a Resources file while running... the error I got was that the value of the Resources file (while reading) was equal to null...</p>

<p>I also tried to replace 
<code>WindowsFormsApplication1.Properties.Resources.resources.Rihanna.jpg</code> 
to 
<code>WindowsFormsApplication1.Properties.Resources.resources.Rihanna</code>
but still, No luck. I received the same error message.</p>

<p>code:</p>

<p>write:</p>

<pre><code>IResourceWriter writer = new ResourceWriter("WindowsFormsApplication1.Properties.Resources.resources");
            System.Drawing.Image img = (System.Drawing.Bitmap)new System.Drawing.Bitmap("e:\\Sabrina.jpg");
            writer.AddResource("Rihanna", img);
            writer.Close();
</code></pre>

<p>Read:</p>

<pre><code>Assembly myAssembly = Assembly.GetExecutingAssembly();
            Stream myStream = myAssembly.GetManifestResourceStream("WindowsFormsApplication1.Properties.Resources.resources.Rihanna");
            Bitmap bmp = new Bitmap(myStream);
            pictureBox1.Image = bmp;
</code></pre>
