below is some codes.
my arraylist below reads from a file. My files contains blank line (ie
carriage return)
My message dialog shows all strings being captured. However i do not want my
array to contain "blank" string/line/carriage return
How do i remove the index so that my arraylist become smaller ?
****************************
Dim sr As StreamReader = New StreamReader(filespath)
Dim line As String
Do
line = sr.ReadLine
'add each line into arraylist
If InStr(line, ";") <> 1 Then
filestoexecute.Add(line)
End If
Loop Until line Is Nothing
sr.Close()
*****************************
For Each i In filestoexecute
MessageBox.Show(i)
Next
****************************