I have this in a function:
Code:
CString path;
ifstream fin;
fin.open((LPCSTR)inputPath,ios::in);
....
getline(fin,path,'\n');
but I get this message:
error C2780: 'std::basic_istream<_Elem,_Traits> &std::getline(std::basic_istream<_Elem,_Traits> &,std::basic_string<_Elem,_Traits,_Alloc> &)' : expects 2 arguments - 3 provided
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\string(525) : see declaration of 'std::getline'
If I remove the third argument (the '\n'), I get this:
error C2780: 'std::basic_istream<_Elem,_Traits> &std::getline(std::basic_istream<_Elem,_Traits> &,std::basic_string<_Elem,_Traits,_Alloc> &,const _Elem)' : expects 3 arguments - 2 provided
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\string(473) : see declaration of 'std::getline'
What the?