hi,
i read the ascii value from a file and wrote the decimal one in other file.
But values above "127" i.e. extended ascii are printed as" 65533."
here ais wat i did:
any help for the extended ascii values plzzz
i read the ascii value from a file and wrote the decimal one in other file.
But values above "127" i.e. extended ascii are printed as" 65533."
here ais wat i did:
Code:
private void button1_Click(object sender, EventArgs e)
{
int[] b = new int[100000];
StreamReader sw = new StreamReader("c: \\28D.09N");
for (int i = 0; i < 5000; i++)
{
b[i] = sw.Read();
//int c = sw.Read();
//int a = (int)c;
Console.WriteLine(b[i]);
}
/*SaveFileDialog sv = new SaveFileDialog();
sv.Filter = "text file|*.txt";
if (sv.ShowDialog() == DialogResult.OK)
{*/
StreamWriter sr = new StreamWriter("c: \\bin28D.txt");
for (int i = 0; i < 5000; i++)
{
sr.WriteLine(b[i]);
}
sw.Close();
}
Comment