How can I count lines using the standard classes, fstream and ifstream?
fstream
ifstream
Divide the file size by the average number of characters per line!