How can I count lines using the standard classes, fstream and ifstream?
fstream
ifstream
You read the file line by line. Count the number of lines you read.