First of all, I MUST pass by reference. My instructor said that the line counting & character counting SHOULD be done in the same function (but if I'm desperate I can separate them into 2). The counting lines portion is correct, however I'm not sure how to properly write the code to count the characters. My instructor told me that I need to use ch = inFile.get() but this code I have here isn't working.
#include<iostream>
#include<fstream>
using namespace std;
You are closing your inFile in the while loop. That's a problem! Second, inFile.get() isn't exactley useful at this moment because we have a string that already has this information calculated. Use the .size() function!
Finally, I'm not sure why you pass &ch into the function. As far as I can see, you use it as a space filler so that you can use inFile.get() (which isn't really required). I don't know what you are planning to return with this, but currently it only returns the last character in the file.