title: If file name contains specific text, display full name
body: <p>I am trying to have an application see if files contain a part of text. If it does contain it, I need to place it in a string (and/or display it).</p>
  
  <p>So far, I have it working, as far as saying it is found or not, but I am unsure how to convert the results into a string. </p>
  
  <pre><code> Dim dir As String = "C:\test\"
      Dim file As String()
      file = IO.Directory.GetFiles(dir, "1234" &amp; "_*")
      If file.Length &gt; 0 Then
          'Found
      Else
          'Not Found
      End If
  </code></pre>
  
  <p>When I try to add something like <code>Dim FileName as string = file</code> I get</p>
  
  <blockquote>
    <p>the value of type 1-dimensional array cannot be converted error</p>
  </blockquote>
  
  <p>Or when I change <code>Dim file As String()</code> to <code>Dim file As String</code> I get the same error. </p>