Hey guys, i am having trouble finishing my program. Here's the program. I am getting an error saying my 'fin' is not declared. I also need to include a loop to allow the user to enter the file name twice before exiting if the file does not exist that they entered. Here is my program that i have typed up so far. If anyone has any answers that would be great. Thanks!
#include <iostream>
#include <fstream>
#include <string>
using namespace std;
fin is only available in main. Since showContent has a parameter file you should use it.
Also forget about eof(). It doesn't work like you expect. Google will tell you why.