Example #1
0
        static void Main(string[] args)
        {
            TextComparisonEngine engine = new TextComparisonEngine();

            while (true)
            {
                Console.WriteLine("Enter names of local text files to compare:");
                Console.Write("File #1: ");
                string textA = File.ReadAllText(Console.ReadLine());
                Console.Write("File #2: ");
                string textB = File.ReadAllText(Console.ReadLine());

                engine.Compare(textA, textB);
                engine.PrintResults();
            }
        }
Example #2
0
        static void Main(string[] args)
        {
            TextComparisonEngine engine = new TextComparisonEngine();

            while (true)
            {
                Console.WriteLine("Enter names of local text files to compare:");
                Console.Write("File #1: ");
                string textA = File.ReadAllText(Console.ReadLine());
                Console.Write("File #2: ");
                string textB = File.ReadAllText(Console.ReadLine());

                engine.Compare(textA, textB);
                engine.PrintResults();
            }
        }