예제 #1
0
    static void Main(string[] args)
    {
        //using (StreamReader reader = File.OpenText(args[0]))
        using (StreamReader reader = File.OpenText(@"Easy\TrickOrTreat.txt"))
        {
            while (!reader.EndOfStream)
            {
                string line = reader.ReadLine();
                if (null == line || line == "")
                {
                    continue;
                }

                House houses = new House(line);

                Console.WriteLine(houses.CountTotalCandy());
            }
        }

        Console.ReadKey();
    }