?
=?ISO-8859-1?Q?Ga=EBl_Rosset?=
Hello,
I have the following reader function :
public static string[] fileReadAllLines(string strFileName)
{
ArrayList content = new ArrayList();
using (StreamReader sr = File.OpenText(strFileName))
{
string input;
while ((input = sr.ReadLine()) != null)
{
content.Add(input);
}
sr.Close();
}
return toStringArray(content);
}
which also can be replaced with :
public static string[] fileReadAllLines(string strFileName)
{
return File.ReadAllLines(strFileName);
}
Both those methods remove all special characters (é,è,ø,æ,...) from the
stream, what to do to get them ?
Thanks
I have the following reader function :
public static string[] fileReadAllLines(string strFileName)
{
ArrayList content = new ArrayList();
using (StreamReader sr = File.OpenText(strFileName))
{
string input;
while ((input = sr.ReadLine()) != null)
{
content.Add(input);
}
sr.Close();
}
return toStringArray(content);
}
which also can be replaced with :
public static string[] fileReadAllLines(string strFileName)
{
return File.ReadAllLines(strFileName);
}
Both those methods remove all special characters (é,è,ø,æ,...) from the
stream, what to do to get them ?
Thanks