AdvancedAlgorithms.BigStringSearch.SimpleStringSearch C# (CSharp) Method

SimpleStringSearch() private static method

private static SimpleStringSearch ( ) : void
return void
        private static void SimpleStringSearch()
        {
            int numLines = int.Parse(Console.ReadLine());

            for (int i = 0; i < numLines; i++)
            {
                string pattern = Console.ReadLine();
                string text = Console.ReadLine();

                int location = FindText(pattern, text);

                if (location == NOT_FOUND)
                {
                    Console.WriteLine(i + 1 + " NOT FOUND");
                }
                else
                {
                    Console.WriteLine(i + 1 + " " + location);
                }

            }
        }