using the "readline" function to read a specific line

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dotto
    New Member
    • Oct 2009
    • 1

    using the "readline" function to read a specific line

    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
    Recognized Expert Specialist
    • Mar 2008
    • 3532

    #2
    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

    Comment

    Working...