I want to convert the following PHP operation to C# code, could anyone please help me to convert this to C#.
$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']));
Thanks
Um google reading and writing files in c#. pick what works for you.
The strings would be replaced with something like this.
The file operations would use a FileStream to either read / write.
So for example (psuedo code)
So Google reading and writing files to find what works best for you. Most likely binary streams.