Is there a method that can count the number of characters per line, when I getline from a file?
Printable View
Is there a method that can count the number of characters per line, when I getline from a file?
number of characters in a string is strlen()
gcount works with ifstream objects too - which is what I was leading to. Thanks