Parser.cs 394 B

12345678910111213141516171819
  1. using System.Text.RegularExpressions;
  2. namespace Day18;
  3. public partial class Parser
  4. {
  5. [GeneratedRegex(@".*")]
  6. private partial Regex LineMatch();
  7. public void Parse(string inputFile)
  8. {
  9. using var reader = File.OpenText(inputFile);
  10. while (!reader.EndOfStream)
  11. {
  12. var line = reader.ReadLine()!;
  13. }
  14. }
  15. }