Thank you for taking the time to read this question. My question is about VB.NET and converting a text file to a 1D array.
My text file will contain 30 names of technology companies. I want the data values read from TECHNOLOGY into a 1D array called 'companies'. I then want all the companies output with each on a new line.
Please let me know how I can improve my code / correct it fully. Thanks!
Dim sr As New Streamreader("Companies")
Dim words as string=""
Dim company(30) as string
Dim I as Integer=0
Do Until sr.Peek=1
Word=sr.Readline()
company(i)=word
Lstwords.Items.Add(words(i))
i=i+1