Is there a method that can count the number of characters per line, when I getline from a file?
This is a discussion on gcount with files within the C++ Programming forums, part of the General Programming Boards category; Is there a method that can count the number of characters per line, when I getline from a file?...
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()
"You are stupid! You are stupid! Oh, and don't forget, you are STUPID!" - Dexter
gcount works with ifstream objects too - which is what I was leading to. Thanks