public static void Main()
string path = @"MyTest.txt";
using (StreamWriter sw = new StreamWriter(path))
sw.WriteLine("The quick brown fox jumps over the lazy dog is an English-language pangram—a sentence that contains all of the letters of the English alphabet");
using (StreamReader sr = new StreamReader(path))
int count = sr.Read(c, 0, c.Length);
Console.WriteLine(c.Take(count).ToArray());
Console.WriteLine("The process failed: {0}", e.ToString());