Ive been useing file streams in my projects all along, this is the first time ive used it with MFC.
here is the error im getting
"error C2678: binary '>>' : no operator defined which takes a left-hand operand of type 'class ifstream' (or there is no acceptable conversion)"
And here is a code snippet
ifstream file(m_filename);
file >> m_type >> endl; //error on this line
m_filename is a CString with the name of the file to be opened
m_type is an int with the value 0;
The file dose exist, and has only one numer value on the first line.