Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in C only
Search
Advanced Search
Forums
BYTES
Product Launch
Updates
Developer Toolkit
Member List
Calendar
Today's Posts
Home
Forum
Topic
C
C fscanf- how to skip lines
C fscanf- how to skip lines
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
odin607
New Member
Join Date:
Jun 2008
Posts:
19
#1
C fscanf- how to skip lines
Jul 21 '08, 04:21 AM
Code:
---.--- ---.--- ---.---
gpraghuram
Recognized Expert
Top Contributor
Join Date:
Mar 2007
Posts:
1275
#2
Jul 21 '08, 04:29 AM
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
Post
Cancel
Previous
template
Next
Working...
OK
OK
Cancel
👍
👎
☕
Comment