写入文件换行

CString   sRead;  
  sRead   =   "你好啊!/r/n";  
  CFile   mFile(m_sPath,CFile::modeWrite|CFile::modeCreate);  
  mFile.Write(sRead,sRead.GetLength());    
  mFile.Flush();    
  mFile.Write(sRead,sRead.GetLength());  
  mFile.Close();     

你可能感兴趣的:(写入文件换行)