CFile file;
file.Open(strName, CFile::modeWrite|CFile::modeNoTruncate|CFile::modeCreate);
if( file.GetLength() != )
{
file.SeekToEnd();
file.Write("\r\n",strlen("\r\n"));//换行
}
file.Write(strValue.GetBuffer(), strValue.GetLength());
file.Close();
CFile file;
file.Open(strName, CFile::modeWrite|CFile::modeNoTruncate|CFile::modeCreate);
if( file.GetLength() != )
{
file.SeekToEnd();
file.Write("\r\n",strlen("\r\n"));//换行
}
file.Write(strValue.GetBuffer(), strValue.GetLength());
file.Close();