Hi,
I am trying to read text file data into an array. I expect to get each line from the file in a record in the array. I came up with the code below but I am getting an error on the read line about "System.NullReferenceException"
Can you please help?
ReadFile = IO.File.OpenText(FileName)
For i = 1 To RecCount
dArr(i) = ReadFile.ReadLine()
Next
ReadFile.Close()
Mo
I am trying to read text file data into an array. I expect to get each line from the file in a record in the array. I came up with the code below but I am getting an error on the read line about "System.NullReferenceException"
Can you please help?
ReadFile = IO.File.OpenText(FileName)
For i = 1 To RecCount
dArr(i) = ReadFile.ReadLine()
Next
ReadFile.Close()
Mo