about summary refs log tree commit diff
path: root/Day.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Day.cs')
-rw-r--r--Day.cs7
1 files changed, 7 insertions, 0 deletions
diff --git a/Day.cs b/Day.cs
index e12d7eb..ccd06c6 100644
--- a/Day.cs
+++ b/Day.cs
@@ -1,16 +1,23 @@
 using System;
+using System.Collections.Generic;
+using System.Diagnostics;
+using System.IO;
 
 namespace aoc2019
 {
     public abstract class Day
     {
         public abstract int DayNumber { get; }
+        public virtual IEnumerable<string> Input =>
+            File.ReadLines($"input/day{DayNumber}.in");
+
         public virtual void AllParts()
         {
             Console.WriteLine($"Day {DayNumber}:");
             Console.WriteLine(Part1());
             Console.WriteLine(Part2());
         }
+
         public abstract string Part1();
         public abstract string Part2();
     }