Thanks, i figured out how to accomplish the same thing using serialization. It looks similar to this: // This is the saving Routine CFile f; f.Open("PrefsFile", CFile::modeCreate | CFile::modeWrite); CArchive ar( &f, CArchive::store ); ar << m_CurrentCount; // Number of objects being saved for(int i = 0; i> m_CurrentCount; // Number of objects to load for(int i = 0; i < m_CurrentCount ; i++) ar >> Prefs[i]; ar.Close(); f.Close();