Reading and Writing PHP operation in C#?
<p>I want to convert the following PHP operation to C# code, could anyone please help me to convert this to C#.</p>

<pre><code>$swfaddr = $absolutepath."/components/flash/".$slug.".swf";
$swf = fopen($swfaddr, "w");
fwrite($swf, file_get_contents($game['swf_url']));
$thumbaddr = $absolutepath."/components/images/".$slug.".gif";
$thumb = fopen($thumbaddr, "w");
fwrite($thumb, file_get_contents($game['thumbnail_url']));
</code></pre>

<p>Thanks</p>
