public string WriteLogFile()
        {
            EmailFileScanner csvEmailFileScanner = new EmailFileScanner();
            csvEmailFileScanner.ScanEmailForSearchWords("PersonalReferences.csv");
            csvEmailFileScanner.ScanEmailForToFromSubjectContent("PersonalReferences.csv");

            logFileName = "PersonalReferences.csv";
            var newPath = path + logFileName;
            if (!File.Exists(newPath))
            {
                using (StreamWriter fileWriter = File.CreateText(newPath))
                {
                    fileWriter.WriteLine(csvEmailFileScanner.logFileHeader[6]);
                    fileWriter.WriteLine(csvEmailFileScanner.logFileHeader[7]);
                    fileWriter.WriteLine(csvEmailFileScanner.logFileHeader[8]);
                    fileWriter.WriteLine("Context: ");
                    foreach (string sentence in csvEmailFileScanner.linesContainingcsvSearchWords)
                    {
                        fileWriter.WriteLine(sentence);
                    }
                }
                return message;
            }
            else
                return message;
        }
        public string WriteLogFile()
        {
            EmailFileScanner xmlEmailFileScanner = new EmailFileScanner();
            xmlEmailFileScanner.ScanEmailForSearchWords("Food.xml");
            xmlEmailFileScanner.ScanEmailForToFromSubjectContent("Food.xml");

            logFileName = "Food.xml";
            var newPath = path + logFileName;
            if (!File.Exists(newPath))
            {
                using (StreamWriter fileWriter = File.CreateText(newPath))
                {
                    fileWriter.WriteLine(xmlEmailFileScanner.logFileHeader[0]);
                    fileWriter.WriteLine(xmlEmailFileScanner.logFileHeader[1]);
                    fileWriter.WriteLine(xmlEmailFileScanner.logFileHeader[3]);
                    fileWriter.WriteLine("Context: ");
                    foreach (string sentence in xmlEmailFileScanner.linesContainingxmlSearchWords)
                    {
                        fileWriter.WriteLine(sentence);
                    }
                }
                return message;
            }
            else
                return message;
        }
        public string WriteLogFile()
        {
            EmailFileScanner txtEmailFileScanner = new EmailFileScanner();
            txtEmailFileScanner.ScanEmailForSearchWords("Meetings.txt");
            txtEmailFileScanner.ScanEmailForToFromSubjectContent("Meetings.txt");

            logFileName = "Meetings.txt";
            var newPath = path + logFileName;
            if (!File.Exists(newPath))
            {
                using (StreamWriter fileWriter = File.CreateText(newPath))
                {
                    fileWriter.WriteLine(txtEmailFileScanner.logFileHeader[3]);
                    fileWriter.WriteLine(txtEmailFileScanner.logFileHeader[4]);
                    fileWriter.WriteLine(txtEmailFileScanner.logFileHeader[5]);
                    fileWriter.WriteLine("Context: ");
                    foreach (string sentence in txtEmailFileScanner.linesContainingtxtSearchWords)
                    {
                        fileWriter.WriteLine(sentence);
                    }
                }
                return message;
            }
            else
                return message;
        }