0
Q:

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)
   ...
0

New to Communities?

Join the community