I have a php code like this and I need to convert it to .Net
$A = array_keys($_GET);
$f1 = fopen("doc\\outputreport.txt",'w');
for($i=0; $i<sizeof($A); $i++) {
$args = $A[$i]."=".konvertering($_GET[ $A[$i] ], "ISO8859-1", "UTF-8");
fwrite($f1, $args."\r\n");
}
Here is my conversion:
string fileOut = ((Request.QueryString["msisdn"] )+ (Request.QueryString["shortcode"]) + (Request.QueryString["password"]).ToString());
try
{
Filestream filestream = new Filestream(@"\\outputreport.txt", FileMode.Open, FileAccess.Write,FileMode.Append);
}
finally
{
}
}
Values comes from another page via a query string. In this file I write converted values.UTF-8 to ISO.I have another function called konvertering to convert characters from UTF 8 to ISO.but i’m not handle that part here..is this partial part correct ? how can i do that part.. give me a solution or clue
I think it works for you as per your question :