how can i skip the 1st 2 lines from my input file
ghadahelal
0
Light Poster
Recommended Answers
Jump to Post>how can i skip the 1st 2 lines from my input file
Read file in line by line If line number equals 1 or 2 then //ignore endif else //do other stuff
Jump to PostTo read in a line, assuming your file is a plain text file, you can use
cin.getline() or getline - assuming you read in each line as a std::string.
All 5 Replies
Reply to this topic
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.