private string text = File.ReadAllText(file); //reads text file into program

        #endregion Fields

        #region Methods

        public void TextFile(string filePath)
        {
            string pFilePath = filePath;
            Analysis txtAn = new Analysis();                    //creates a new object of analysis
            WriteToDoc wtd = new WriteToDoc();

            Console.WriteLine("{0}", text);                     //outputs text file to the console

            //Calls all analysis methods passing text to each
            txtAn.vowelCount(text);
            txtAn.ConsonantCount(text);
            txtAn.LowerCount(text);
            txtAn.UpperCount(text);
            txtAn.SentenceCount(text);
            txtAn.Letterfrequency(text);
            wtd.LongWords(text, pFilePath);
        }
        private string text        = File.ReadAllText(file);    //reads text file into program

        public void TextFile(string filePath)
        {
            string     pFilePath = filePath;
            Analysis   txtAn     = new Analysis();              //creates a new object of analysis
            WriteToDoc wtd       = new WriteToDoc();

            Console.WriteLine("{0}", text);                     //outputs text file to the console

            //Calls all analysis methods passing text to each
            txtAn.vowelCount(text);
            txtAn.ConsonantCount(text);
            txtAn.LowerCount(text);
            txtAn.UpperCount(text);
            txtAn.SentenceCount(text);
            txtAn.Letterfrequency(text);
            wtd.LongWords(text, pFilePath);
        }