class b
{
public:
b(string file)
{
filehandle.load(file);
}
private:
ifstream filehandle;
};
When I instanciate my object I get an error saying that it can't convert string to const char*. Thing is I want the user to type in the file he want's to load.
What am i doing wrong?
Added alla necessary #includes.