Here is my function code, but apparently I screwed up big time, what the heck do I type? I am desperate. My friend told me there is a way to use a while loop and use a getline but I don't know how to do that, but apparently I don't know how to do it this way either.
// Function: countCharsLines
void countCharsLines(ifstream &inFile, int &countLines, int &countChars)
{
// Variables
int countLines = 0;
int countChars = 0;
string counter;