Importing line of a text file to a variable in VB

8ball

Newcomer
Joined
Sep 15, 2009
I want to take a text file with data stored on each line, then have my VB program take each line and assign it a variable. If anyone can help me on this I would deeply appreciate it. Thanks.
 

PlausiblyDamp

Administrator
Joined
Sep 4, 2002
Location
Lancashire, UK
Do you have any code written so far? The easiest way would be to use a StreamReader class to read the file by calling it's ReadLine method in a loop and assign it's return to the variable in question.
 
Top Bottom