title: Combobox values from a textfile
body: <p>Hope people can help! </p>
  
  <p>I'm attempting to create a combobox filled with information from a text file thats been delimited using , as a break mark. IE </p>
  
  <p>objecta,grad,N,words,5,moretext</p>
  
  <p>I need the various areas between the , as integers/booleans/strings .. but I'm having problems getting the code to do this properly working</p>
  
  <p>Ive searched the web, and found this code, but its not working properly for me. Maybe Im being dumb but hopefully someone can help me. Help me oh gurus of the internet!</p>
  
  <pre><code>Public Sub meritlist()
      Dim looksups As New ArrayList
      ' This call is required by the Windows Form Designer.
      InitializeComponent()
  
      Dim rdr As IO.StreamReader = IO.File.OpenText(c:merits.txt")
      While Not rdr.EndOfStream
          Dim line As String = rdr.ReadLine()
  
          'Split the line by a comma:
          Dim arrayList = line.Split(",")
  
          'Get the right values: break down is as: Merit Name,Type,Shared,Carthan,Max,Pre-Req
          Dim meritname As Integer = arrayList(0)
          Dim merittype As String = arrayList(1)
          Dim meritshared As Boolean = arrayList(2)
          Dim carthan As String = arrayList(3)
          Dim meritmax As Integer = arrayList(4)
          Dim prereq As String = arrayList(5)
  
          cmoMRDro.Items.Add(New lookups(arrayList(0), arrayList(1)))
  
      End While
      rdr.Close()
  End Sub
  </code></pre>