hello all
i don't know if this is the right place to put this but i need to
convert the following code to c# - asp.net
any help will be useful
thnx in advance
<?php
//the web path of the image you want to get
$source_file = "http://domain.textamerica.com/recent.aspx";
//the absolute file path you are writing to
$destination_file = "/rootfolder/site/safeDirectory/pic0.jpg";
//read the source file into buffer
ob_start();
readfile($source_file);
$filecontents = ob_get_contents();
ob_end_clean();
//move its contents
//this overwrites the destination file!
if($fp = fopen($destination_file,'w+')) {
fwrite($fp,$filecontents);
fclose($fp);
}
?>