sorry pls ignore my last question as it was a typo error
"James" <jkklim@hotmail.com> wrote in message
news:OcP2gYR4FHA.696@TK2MSFTNGP09.phx.gbl...[color=blue]
> dim myArrayList as new Arraylist (does not allow me to define using
> the NEW word ..pls advise
>
> etc
> etc
>
> myArrayList.Add(line)
>
>
>
> "Cor Ligthert [MVP]" <notmyfirstname@planet.nl> wrote in message
> news:OEC3NsQ4FHA.1864@TK2MSFTNGP12.phx.gbl...[color=green]
>> James,
>>
>> By not using the fixed array however the dynamic arraylist. (see inline 2
>> places in the code)
>>
>> dim myArrayList as new Arraylist[color=darkred]
>>> Dim sr As StreamReader = New StreamReader("machines.txt")
>>> dim line as string
>>> Do
>>>
>>> line = sr.ReadLine[/color]
>> myArrayList.Add(line)[color=darkred]
>> >
>>>
>>> Loop Until line Is Nothing
>>>
>>> sr.Close()[/color]
>>
>>
http://msdn.microsoft.com/library/de...classtopic.asp
>>
>> I hope this helps,
>>
>> Cor
>>[/color]
>
>[/color]