Example #1
0
        private static void Main(string[] args)
        {
            var    lngpok = new Lngpok();
            string inputFileName;
            string outputFileName;

            if (args == null || args.Length == 0)
            {
                inputFileName  = "lngpok.in";
                outputFileName = "lngpok.out";
            }
            else if (args.Length == 2)
            {
                inputFileName  = args[0];
                outputFileName = args[1];
            }
            else
            {
                Console.WriteLine("Command line parameters violation!");
                return;
            }

            lngpok.Run(inputFileName, outputFileName);
        }
Example #2
0
        private static void Main(string[] args)
        {
            var lngpok = new Lngpok();
            string inputFileName;
            string outputFileName;

            if (args == null || args.Length == 0)
            {
                inputFileName = "lngpok.in";
                outputFileName = "lngpok.out";
            }
            else if (args.Length == 2)
            {
                inputFileName = args[0];
                outputFileName = args[1];
            }
            else
            {
                Console.WriteLine("Command line parameters violation!");
                return;
            }

            lngpok.Run(inputFileName, outputFileName);
        }