I get the following error when I try to use getline to read data in from a text file:
error C2664: 'class istream &__thiscall istream::getline(char *,int,char)' : cannot convert parameter 3 from 'char [2]' to 'char'
Here's the offending code:
I'm using MSVC++ 6.0.Code:char cIn[200]; char cFile[9]="test.txt"; ifstream bFile(cFile); while(!bFile.eof()) { bFile.getline(cIn,200,"\n"); MessageBox(hwnd,cIn,"Debug",NULL); }