CFile 讀寫CString

(1)   寫入   CFile W;   W.Open(_T("Test.txt"), CFile::modeCreate | CFile::modeWrite);  CString s1 = _T("You are a Pig");spa  int size = s1.GetLength();it  W.Write(&size, sizeof(int));  W.Write(s1, 2*s1.
相關文章
相關標籤/搜索