public void SolveDayNine() { string resultsFile = "adventDayNineSolution.txt"; string dataFile = "adventDayNine.txt"; string outFile = Path.Combine(baseDir, resultsFile); string inFile = Path.Combine(baseDir, dataFile); string[] sourceData = ReadAllLines(inFile); IntComputer curComp = new IntComputer(); curComp.InitializeMemory(sourceData[0]); curComp.AddInputData(2); // test mode //curComp.InitializeMemory(SolverTests.GetSampleData(0)); curComp.StartComputer(false); while (!curComp.IsProgramCompleted()) { curComp.ResumeProgram(); } string debugData = curComp.GetDebugOutputString(); StreamWriter sw = new StreamWriter(outFile); sw.WriteLine(debugData); sw.Close(); //long outVal = curComp.ReadOutputData(); }