I have an application for working with files. It needs to work with the files one character at a time. I am using an ArrayList
to store the data. Here's the code that's causing the problem:
Dim fileData As ArrayList = Nothing
Dim temp As Char = Nothing
While Not EOF(open_file_number)
Input(open_file_number, temp)
fileData.Add(temp)
End While
The line of code that is throwing the Null Reference Exception is where I (attempt to) assign the value of temp
to a new element in the fileData ArrayList
. Anybody have an idea of what's going on here? Thanks