Public Class Form1 Dim socleag(6, 6) As String Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load 'Program is read the file and stores it in the array. Dim sr As IO.StreamReader = IO.File.OpenText("SocLeague.txt") For row As Integer = 0 To 6 For col As Integer = 0 To 6 socleag(row, col) = sr.ReadLine Next Next ListBox1.Items.Clear() For i As Integer = 0 To 6 Step 1 For j As Integer = 0 To 6 Step 1 ListBox1.Items.Add(socleag(i, j)) Next Next sr.Close() End Sub End Class
I tried to convert this two dimensional to a col and row table. I need help. what I am going wrong with the code.
Mod Edit: Please use code tags when posting your code. Code tags are used like so =>