From 419f225bd05629562f656ffb31beede5417af780 Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Fri, 6 Dec 2019 02:01:51 -0500 Subject: add virtual implementation for reading input file --- Day5.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Day5.cs') diff --git a/Day5.cs b/Day5.cs index ca9a08f..ecfa14e 100644 --- a/Day5.cs +++ b/Day5.cs @@ -8,8 +8,11 @@ namespace aoc2019 { public override int DayNumber => 5; - private readonly IEnumerable tape = - File.ReadLines("input/day5.in").First().Split(',').Select(int.Parse); + private readonly IEnumerable tape; + public Day5() + { + tape = Input.First().Split(',').Select(int.Parse); + } private int output; public void RunIntCode(List v, int input) -- cgit 1.4.1