G
Guest
Hi everyone,
Do you know why the following code only read certain number of lines of text
file, but not the entire file?
Dim sr As StreamReader
Dim str As String
Dim al As ArrayList = New ArrayList
Do
str = sr.ReadLine
If str <> Nothing Then
al.Add(str)
End If
Loop Until str = Nothing
Thank you for your attention.
Nina
Do you know why the following code only read certain number of lines of text
file, but not the entire file?
Dim sr As StreamReader
Dim str As String
Dim al As ArrayList = New ArrayList
Do
str = sr.ReadLine
If str <> Nothing Then
al.Add(str)
End If
Loop Until str = Nothing
Thank you for your attention.
Nina