Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reading a Text File

Status
Not open for further replies.

doctorcpu

Technical User
Sep 25, 2000
2
US
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 = fso_OpenTextFile(File, ForReading)
Dim r As String = f.ReadLine() 'This is what I tried but it doesn't work.

any help is appreciated.


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top