title: C# how to check local folder for new files and keep a counter
body: <p>I am currently trying to keep a counter on c# on a local file folder for new files that are created.</p>
  
  <p>I have two sub directories to CD and LP that I have to keep checking.</p>
  
  <p>Maybe some pseudo code might help</p>
  
  <pre><code>        static int CDcounter = 0;
          static int LPcounter = 0;
          public void returnFileCount()
          {
              //Location of Files
              string[] files = Directory.GetFiles(@"C:\Data\LotData");
  
  
              //if file sub directory = cd go in and check for new files
              //if new files pop up in cd CDcounter ++ same for LP
          }
  
  </code></pre>