How to read textfile from particular line in c#?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • NareshN
    New Member
    • Aug 2010
    • 45

    How to read textfile from particular line in c#?

    Hi All,


    Can u tell me how to read textfile from 15line or from particular line that means i have to ignore first 15 lines of textfile and i should start from 16th line.
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    NareshN,

    What exactly are you having problems with?
    Reading the file?
    What have you tried so far to solve your problem?

    -Frinny

    Comment

    • aspdotnetuser
      New Member
      • Nov 2010
      • 22

      #3
      Hi,

      If i am right, you can create parsing zones in text files using comments. say you can haven this way

      Line 1:
      ..
      ..
      'User comment #START
      Line 15:



      Lline 120:
      'User Comment #END

      So during parsing line by line, need not to worry about line no 15 or XY, just start parsing after you hit #START and stop parsing once you hit #END. This way you could make it generic to suit any requirement.

      Comment

      Working...