StringCheck1.cs 581 B

123456789101112131415161718192021222324
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace ConsoleApp1.StringCheck
  7. {
  8. public static class StringCheck1
  9. {
  10. public static void Run()
  11. {
  12. var strings = File.ReadAllLines("2024-08-27.log");
  13. foreach (var s in strings) {
  14. if (s.Contains("completed_session") && !s.Contains("PeriodEnergy"))
  15. {
  16. Console.WriteLine(s);
  17. }
  18. }
  19. }
  20. public static string log = "";
  21. }
  22. }