Hi everyone:
I'm reading a file (line by line) but what I wanna do is to jump some lines, but I can't really figure out how to do that. I hope someone can help me out.
mauricio_adamo
0
Newbie Poster
Recommended Answers
Jump to PostIt is not normally possible to just skip lines in a text file. Just read the file from beginning to end until you get to the line you want. If this is going to be done frequently on a file that rarly, if ever, changes then there are some techinquest …
Jump to Post>>But I was wondering if there was a way to skip lines in C
I already answered that question. please re-read my previous post. If you did not understand my answer then ask about the part you did not understand.
Jump to Postdo a google for "c++ tutorial" "File I/O" i remember doinh it about 8 months ago, theres a great free one that tells you just how to do that
Jump to PostI wonder if OP means he is reading some source code with his physical eyes, and wants to know what the equivalent of BASIC's goto is. If so, its:
go label
line 1
line 2
line 3label:
Or, if you are reading a file, and …
All 13 Replies
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
mauricio_adamo
0
Newbie Poster
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
jbennet
1,618
Most Valuable Poster
Team Colleague
Featured Poster
mathematician
0
Junior Poster
iamthwee
mathematician
0
Junior Poster
iamthwee
~s.o.s~
2,560
Failure as a human
Team Colleague
Featured Poster
mathematician
0
Junior Poster
~s.o.s~
2,560
Failure as a human
Team Colleague
Featured Poster
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
mathematician
0
Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.