title: Showing content of all textfiles in folder into a textbox VB
body: <p>I need to show the content of multiple textfiles in the same folder in a textbox.</p>
  
  <p>My code right now:</p>
  
  <pre><code>Public Class Form1
      Dim dMods1 = "DirectPathToFolderWithTextFiles"
      Dim dMods2 = "DirectPathToFolderWithTextFiles"
      Dim dMods3 = "DirectPathToFolderWithTextFiles"
      Dim dMods4 = "DirectPathToFolderWithTextFiles"
  
      Dim fileCount1 As Integer = Directory.GetFiles(dMods1).Length
      Dim fileCount2 As Integer = Directory.GetFiles(dMods2).Length
      Dim fileCount3 As Integer = Directory.GetFiles(dMods3).Length
      Dim fileCount4 As Integer = Directory.GetFiles(dMods4).Length
  
      Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
          Dim nl = System.Environment.NewLine
          Dim Item = dMods1 &amp; "\*.txt"
          Dim Item2 = dMods1 &amp; "\sada2.txt"
          If Not Item Is Nothing Then
  
              TextBox2.Text = File.ReadAllText(Item)
  
  
          End If
  
      End Sub
  End Class
  </code></pre>
  
  <p>A simple "*.txt", like in "Item", gets the error "invalid characters in the path". How can i show the contents in the textbox? Or is there an easier way of doing it? </p>