Answers for "how to discard the first line of a file ifstream"

0

how to discard the first line of a file ifstream

ifstream stream("filename.txt");
string dummyLine;
getline(stream, dummyLine);
// Begin reading your stream here
while (stream)
   ...
Posted by: Guest on May-24-2020

Code answers related to "how to discard the first line of a file ifstream"

Browse Popular Code Answers by Language