title: search folder and all sub folders for a specific file type
body: <p>I used below code to store all .txt files in a specific path in an array.</p>
  
  <pre><code>Dim fileEntries As String() = Directory.GetFiles(folderDIR, "*.txt", SearchOption.AllDirectories)
  </code></pre>
  
  <p>folderDIR is the directory of the folder i want to search in. But this method doesnt seem to work. It takes all the .txt files in current location, but does not consider the subfolders.</p>
  
  <p>Can anyone tell me where I am doing wrong? Or is there a better way to do this?</p>
  
  <p>Thank you.</p>