title: Selecting a random string from a delimited text file
body: <p>I'm trying to input all the parsed strings into a 2D array where the first 5 strings make up one column and then the next 5 make up the second column ect. Then I need to randomly select 3 of the columns and have every string in that column outputted.</p>
  
  <pre><code>        path = My.Computer.FileSystem.GetFileInfo("Two_Point_One_Questions.txt")
      Using MyReader As New Microsoft.VisualBasic.FileIO.TextFieldParser(path.FullName)
          MyReader.TextFieldType = FileIO.FieldType.Delimited
          MyReader.SetDelimiters(",")
          Dim currentRow As String()
          While Not MyReader.EndOfData
              Try
                  currentRow = MyReader.ReadFields()
                  Dim currentField As String
                  Dim i As Integer = 1
                  Dim j As Integer = 1
                  For Each currentField In currentRow
                      Question(i, j) = currentField
                      j = j + 1
                  Next
              Catch ex As Microsoft.VisualBasic.
                          FileIO.MalformedLineException
                  MsgBox("Line " &amp; ex.Message &amp;
                  "is not valid and will be skipped.")
              End Try
          End While
      End Using
  </code></pre>