public void ReadFile() { FileInfo file = new FileInfo(FileName); StreamReader rdr = file.OpenText(); string fileContents = rdr.ReadToEnd(); rdr.Dispose(); FormatReader formatReader = new FormatReader(); MessageBody = formatReader.GetMessageBody(fileContents); }