Currently using:
{
std::ifstream inFile("test.txt");
int x = std::count(std::istreambuf_iterator<char>(inFile), std::istreambuf_iterator<char>(), '\n');
cout<<x<<endl;
}
Though, I'm looking to disclude lines starting with comments (I.E. '//'), thoughts? Or, would I need to write this with something else completely?
EDIT::
I wound up going a different route entirely so that I would be capable of counting all lines of all files in the current working directory.