title: how to load a file from folder to memory stream buffer
body: <p>I am working on vb.net win form. My task is display the file names from a folder onto gridview control. when user clicks process button in my UI, all the file names present in gridview, the corresponding file has to be loaded onto memory stream buffer one after another and append the titles to the content of the file and save it in hard drive with _ed as a suffix to the file name.</p>
  
  <p>I am very basic programmer. I have done the following attempt and succeeded in displaying filenames onto gridview. But no idea of later part. Any suggestions please?</p>
  
  <p>'Displaying files from a folder onto a gridview</p>
  
  <pre><code>    Dim inqueuePath As String = "C:\Users\Desktop\INQUEUE"
      Dim fileInfo() As String
      Dim rowint As Integer = 0
      Dim name As String
      Dim directoryInfo As New System.IO.DirectoryInfo(inqueuePath)
      fileInfo = System.IO.Directory.GetFiles(inqueuePath)
  
      With Gridview1
          .Columns.Add("Column 0", "FileName")
          .AutoResizeColumns()
      End With
  
      For Each name In fileInfo
          Gridview1.Rows.Add()
          Dim filename As String = System.IO.Path.GetFileName(name)
          Gridview1.Item(0, rowint).Value = filename
          rowint = rowint + 1
      Next
  </code></pre>
  
  <p>Thank you very much for spending your valuable time to read this post.</p>