I am attempting to use the MyReader function to read data from a text file and populate a multidimensional array. What should be a simple task is really causing a huge headache. It seems to me that everthing I try continues to throw numerous can't convert to array-string exceptions and null reference exceptions. Any insight to what is going on would be greatly approciated.
While Not MyReader.EndOfData Try currentRow = MyReader.ReadFields() DataInTest.Text = "Data" Dim currentField As String For Each currentField In currentRow Dim testArray As Decimal() Dim arrayCount As Integer = 0 Debug.Print(currentField) testArray.SetValue(currentField, arrayCount) arrayCount = arrayCount + 1 Next Catch ex As Microsoft.VisualBasic. FileIO.MalformedLineException MsgBox("Line " & ex.Message & "is not valid and will be skipped.") End Try