classic773
Programmer
I'm getting a "error C2678: binary '>>' : no operator defined which takes a left-hand operand of type 'class fstream' (or there is no acceptable conversion)"
from:
fstream pref_file;
CString something;
pref_file.open("prefs", ios::in|ios::nocreate);
if(pref_file.is_open())
{
pref_file >> something;
}
Why? I read in MSDN that CString includes >>
from:
fstream pref_file;
CString something;
pref_file.open("prefs", ios::in|ios::nocreate);
if(pref_file.is_open())
{
pref_file >> something;
}
Why? I read in MSDN that CString includes >>