C fscanf- how to skip lines

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • odin607
    New Member
    • Jun 2008
    • 19

    #1

    C fscanf- how to skip lines

    Code:
    ---.---  ---.--- ---.---
  • gpraghuram
    Recognized Expert Top Contributor
    • Mar 2007
    • 1275

    #2
    Hi,
    If you want to skip 10 lines always then what u can do is
    1)Open the file
    2)use fgets to read a line
    3)Loop using fgets tiil u read 10 lines
    4)Then u can use fscanf to start processing from 11th line


    Raghu

    Comment

    Working...