title: C# get file paths of just files with no extensions
body: <p>I am wanting to get a string array of paths of files that do not have extensions. They are binary files with no extensions if that helps.</p>
  
  <p>For example, I am loading a group of file paths out of a folder <code>/test/</code></p>
  
  <p>I want just the path and filenames that do not have a extension (so no <code>.txt</code>, no <code>.csv</code>, no <code>.*</code>)</p>
  
  <p><code>/test/dontWant.txt</code></p>
  
  <p><code>/test/dontWant.csv</code></p>
  
  <p><code>/test/doWant</code></p>
  
  <p>if i do:</p>
  
  <pre><code>String[] paths = Directory.GetFiles(fDir, "*.*", SearchOption.AllDirectories);
  </code></pre>
  
  <p>I of course get everything in those directories.</p>
  
  <p>if I then try:</p>
  
  <pre><code>String[] paths= Directory.GetFiles(fDir, "*", SearchOption.AllDirectories); 
  </code></pre>
  
  <p>I will still get everything in that directory.</p>
  
  <p><strong>Is there a way to just get the files of those that have no extension?</strong></p>
  
  <hr>
  
  <p>using <code>"*."</code> did work, and I don't know why I didn't try that to start with.</p>
  
  <p>I should have been using <code>EnumerateFiles</code> to start with.</p>