title: How to find or get files in Directory with Specific word in the file name Visual Basic.net?
body: <p>I need to get files from a directory containing specific characters in it's name:
  The following code below will return any file with the <code>.csv</code> extension. The problem is there are other csv file I need to leave alone or not get.</p>
  
  <pre><code>Dim FileLocation As DirectoryInfo = _
   New DirectoryInfo("C:\Folder\Subfolder\Data\Input\")
  
  Dim fi As FileInfo() = FileLocation.GetFiles("*.csv")
  </code></pre>
  
  <p>Instead of getting any csv file, I would like to get a file with the word <strong>data</strong>, so any file name containing the word data. Example: <strong>*my_data_file.csv*</strong></p>
  
  <p>How do I do this with the code above?</p>