Advertisement
MatLumber2

Untitled

Apr 25th, 2020
381
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.67 KB | None | 0 0
  1.  private bool method_0()
  2.         {
  3.             string path = "data.ejd";
  4.             string currentDirectory = Directory.GetCurrentDirectory();
  5.             string path2 = Path.Combine(currentDirectory, path);
  6.             bool flag = false;
  7.             bool result;
  8.             if (File.Exists(path2))
  9.             {
  10.                 string s = File.ReadAllText(path2);
  11.                 DateTime t = DateTime.ParseExact(s, "ttyyddmmMMh", null);
  12.                 result = (t <= DateTime.UtcNow || File.ReadAllText(path2).Length == 0 || flag);
  13.             }
  14.             else
  15.             {
  16.                 result = true;
  17.             }
  18.             return result;
  19.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement