Beispiel #1
0
        private static void Main(string[] args)
        {
            Concordance c = new Concordance("input.txt");
            c.Print();
            c.WriteToFile("output.txt");

            Console.ReadKey();
        }
        static void Main(string[] args)
        {
            string textFilePath    = ConfigurationManager.AppSettings["TextFilePath"];
            string alhabetFilePath = ConfigurationManager.AppSettings["AlphabetFilePath"];

            ConcordanceCreater concordanceCreater = new ConcordanceCreater(alhabetFilePath);
            //int N - count of string in one page
            Concordance concordance = concordanceCreater.CreateConrcondance(textFilePath, 5);

            concordance.SaveToFile();
            concordance.Print();

            Console.ReadKey();
        }