Home Forums C++ Programming binary files visual c++ Re: Re: binary files visual c++

#3657
Anonymous
Inactive

I found the solution

CStdioFile file;
CString line;
if(file.Open("color.dat", CFile::modeRead))
{
while(line.IsEmpty())
{
file.ReadString(line);
}
file.Close();
}