title: Read Multiple Files Into List View VB.Net
body: <p>I need to require the user of this program to select two text files from any directory. I then need to display them in a List View, which I have built. File 1 needs to load into the first column and File 2 needs to load into the second. They will correspond to each other.</p>
  
  <p>I currently have the following to allow multiselect</p>
  
  <pre><code>OpenFileDialog.Multiselect = True
  </code></pre>
  
  <p>What I am having trouble with is separating these unique files into corresponding columns. For example, the following code very effectively loads the first file's contents into the first column:</p>
  
  <pre><code>        Dim fileName As String = OpenFileDialog.FileName
  
          fileReader = New StreamReader(fileName)
  
          Do While fileReader.Peek() &lt;&gt; -1
          firstFile = fileReader.ReadLine &amp; vbNewLine
          ListView1.Items.Add(firstFile)
  
          Loop
  </code></pre>
  
  <p>When I choose the second file, the first file's contents are replaced within the same column by the second file's contents.</p>
  
  <p>I have looked at using an array, but am unsure how to load the unique files into each index.</p>
  
  <p>I'm not really sure where to go from here.</p>