Exemple #1
0
    static void Main(string[] args)
    {
        Square a = new Square();
            try {
            using (StreamReader sReader = File.OpenText(args[0]))

                while (!sReader.EndOfStream)
                {

                    string lineOfText = sReader.ReadLine();
                    if (lineOfText != null && checkLine(lineOfText))
                    {
                        Console.WriteLine(a.isSquare(lineOfText));
                    }

                }
            }
            catch (System.IndexOutOfRangeException)
            {
                Console.WriteLine("Input file argument...");
            }
    }