You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
552 B

  1. using System;
  2. using static System.Console;
  3. using System.Collections.Generic;
  4. using System.IO;
  5. using System.Linq;
  6. using Xunit;
  7. namespace AdventOfCode {
  8. public class Util {
  9. public static string RootDir =
  10. Environment.GetEnvironmentVariable("HOME") + "/src/adventofcode/2020/";
  11. public static List<int> ReadInts(string filename) {
  12. string[] lines = File.ReadAllLines(filename);
  13. return lines.Select(int.Parse).ToList();
  14. }
  15. }
  16. public class Program {
  17. static void Main(string[] args) {
  18. Day07.Test();
  19. }
  20. }
  21. }