/*
         * Scans files in collection and returns all words into an array
         */
        private string[] ScanFilesForWords(List <string> files)
        {
            List <string> words = new List <string>();

            foreach (string file in files)
            {
                List <string> fileWords = ReadFromFile.GetWords(file);
                foreach (string word in fileWords)
                {
                    words.Add(word);
                }
            }

            return(words.ToArray());
        }