J
James
i've a text file in the following format and i would like to read into this
array
text file
======
machine1
machine2
Dim sr As StreamReader = New StreamReader("machines.txt")
dim line as string
Do
line = sr.ReadLine
Loop Until line Is Nothing
sr.Close()
How can i read line by line into this form of array :
dim strcomputer() as string = {"machine1", "machine2"}
array
text file
======
machine1
machine2
Dim sr As StreamReader = New StreamReader("machines.txt")
dim line as string
Do
line = sr.ReadLine
Loop Until line Is Nothing
sr.Close()
How can i read line by line into this form of array :
dim strcomputer() as string = {"machine1", "machine2"}