might help,
The contents of the temp.ini file,
[Setup]
ProductName=Microsoft Visual C++ 2008 Redistributable Package
ProductMsi=vc_red.msi
and after running this program,
class Program
{
static void Main(string[] args)
{
var charArrays = ReadAllChar("C:\\temp.ini");
charArrays.ToList().ForEach(ch => Console.Write(ch));
}
static char[] ReadAllChar(string filename)
{
if (File.Exists(filename))
return File.ReadAllText(filename).ToCharArray();
throw new FileNotFoundException(filename);
}
}
This program produces following output,
[Setup]
ProductName=Microsoft Visual C++ 2008 Redistributable Package
ProductMsi=vc_red.msi
:)