void CloseFilePointer(CStdioFile& file)
{
if (file.m_pStream != NULL)
{
file.Close();
}
}
int ConvertFileFormat(CStdioFile& file,CString strTemBuf,CString strTemFile,const CString strFlag)
{
if (file.m_pStream!=NULL)
{
file.Close();
}
if (strTemBuf == strFlag)
{
//to do convert file format
strTemFile = "/"" + strTemFile;
strTemFile = strTemFile + "/"";
if ((long)ShellExecute(NULL, "open", "TxtConvertDtoU.exe", strTemFile, NULL, SW_SHOW)<33)
{
cout<<endl<<"Error:/n"<<strTemFile<<" file format convert failed,maybe /n the TxtConvertDtoU.exe is not find "<<endl;
return 1;
}
}
return 0;
}