When using StreamReader/Writer to process an input text file to an output
text file the pound signs (£) simply disappear. Sample code:
StreamReader sr = new StreamReader("input.txt");
StreamWriter sw = new StreamWriter("output.txt");
string Line;
char [] delimiter = {'*'};
while((Line = sr.ReadLine()) != null)
{
string[] Fields;
Fields = Line.Split(delimiter);
foreach (string thisField in Fields)
{
sw.WriteLine(thisField);
}
sw.WriteLine("******************");
}
sr.Close();
sw.Close();
Any ideas folks? I'm pulling my hair out and have very little to spare!
--
Many thanks for any help
Anthony Ward