Connecting Tech Pros Worldwide Help | Site Map

using the "readline" function to read a specific line

Newbie
 
Join Date: Oct 2009
Posts: 1
#1: 3 Weeks Ago
i am trying to write code to assign values from a line of a text file to variables in my program. the problem is that I don't need all the values written in the text file assigned to variables. So. Basically I want to know if there is a way to use "ReadLine" to access specific lines in a text file.

any type of help would be appreciated
tlhintoq's Avatar
Moderator
 
Join Date: Mar 2008
Location: Arizona, USA
Posts: 1,745
#2: 3 Weeks Ago

re: using the "readline" function to read a specific line


So you're saying you only need lines 10, 15, and 21 for example?
Read all the lines into an array, then use array elements 9, 14 and 20
Reply

Tags
readline, vb.net