Hi,
I'm reading a text file line by line. The console shows each line as I loop through the file. I'd like to set a variable for the lines as they are read to compare with other variables.
How can I send f.ReadLine to a Variable?.
I'm using scripting in vb.net
Console.WriteLine(f.ReadLine)
f = fs
penTextFile(File, ForReading)
Dim r As String = f.ReadLine() 'This is what I tried but it doesn't work.
any help is appreciated.
I'm reading a text file line by line. The console shows each line as I loop through the file. I'd like to set a variable for the lines as they are read to compare with other variables.
How can I send f.ReadLine to a Variable?.
I'm using scripting in vb.net
Console.WriteLine(f.ReadLine)
f = fs
Dim r As String = f.ReadLine() 'This is what I tried but it doesn't work.
any help is appreciated.