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.textamer ica.com/recent.aspx";
//the absolute file path you are writing to
$destination_fi le = "/rootfolder/site/safeDirectory/pic0.jpg";
//read the source file into buffer
ob_start();
readfile($sourc e_file);
$filecontents = ob_get_contents ();
ob_end_clean();
//move its contents
//this overwrites the destination file!
if($fp = fopen($destinat ion_file,'w+')) {
fwrite($fp,$fil econtents);
fclose($fp);
}
?>
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.textamer ica.com/recent.aspx";
//the absolute file path you are writing to
$destination_fi le = "/rootfolder/site/safeDirectory/pic0.jpg";
//read the source file into buffer
ob_start();
readfile($sourc e_file);
$filecontents = ob_get_contents ();
ob_end_clean();
//move its contents
//this overwrites the destination file!
if($fp = fopen($destinat ion_file,'w+')) {
fwrite($fp,$fil econtents);
fclose($fp);
}
?>
Comment