I get the following example
CString line[100];
//string line;
ifstream myfile (_T("example.txt"));
if (myfile.is_open())
{
while ( getline (myfile,line) )
{
cout << line << '\n';
}
myfile.close();
}
How does that "line" can stored values to type CString or TCHAR. I get an error like this:
error C2664: '__thiscall std::basic_ifstream >::std::basic_ifstream >(const char *,int)'
Please help me :)