To store:
CFileStatus stat;
CFile::GetStatus("file", stat);
CFile file("attr.out", CFile::modeWrite);
file.Write(&(stat.rStatus), sizeof(stat.rStatus));
file.Close();
To load:
CFileStatus stat;
CFile file("attr.out", CFile::modeRead);
file.Read(&(stat.rStatus), sizeof(stat.rStatus));
file.Close();
CFile::SetStatus("file", stat);
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow