#include <fstream>
#include <string>
using namespace std;
void Readfile(string fname)
{
ifstream infile(fname);
if (is_open(infile))
{
while (!infile.eof())
{
string sline = "";
getline(infile, sline);
}
infile.close();
}
else
stderr << "unable to open file" << fname << endl;
}
Visual studio says identifier "is_open" is undefined even though I included the fstream library.