in reply to Re: Return full line from line number X
in thread Return full line from line number X

But that will only work if the line numbers in the file are starting at 1, increase by 1 for each line and have no gaps.

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

  • Comment on Re^2: Return full line from line number X