I want the user to input a file name and then the program reads from that file and does what it needs to do.
Before I was just using
cin >> file;
ifstream bookmark (file);
but when I try and replace the actual file with a variable it gives me the error
ifstream bookmark ("bookmarks.html")
.\CBookmarks.cpp(36) : error C2664: 'std::basic_ifstream<_Elem,_Traits>::basic_ifstream(const char *,std::ios_base::openmode,int)' : cannot convert parameter 1 from 'std::string' to 'const char *'
No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called