private string ReadFile(string filename) { using (StreamReader reader = new StreamReader(File.OpenRead(filename))) { return reader.ReadToEnd(); } }