i'm trying to get a single line of data from a file to be presented on a edit box in Visual C++ 6, and i'm currently strugling with one error that is driving me crazy... already tryed a bunch of stuff but nothing works... please help.
This is my code:
==============================================
BOOL CDTHeaderDlg:OnInitDialog()
{
CDialog::OnInitDialog();
char *buffer=0;
ifstream source("Header.txt");
m_country = source.getline(buffer,30,'\n');
UpdateData(FALSE);
==============================================
This is the error I'm getting:
==============================================
binary '=' no operator defined wich takes a right-hand operator of type 'class istream'(or no acceptable conversion)
==============================================
thanks in advance...