c++查找文件的方法
来源:互联网 发布:使用手册制作软件 编辑:程序博客网 时间:2024/05/24 05:31
CFileFind finder;
BOOL bWorking = finder.FindFile(szBuf);
unsigned short slogtype = 0;
while (bWorking)
{
bWorking = finder.FindNextFile();
CString strfilename = finder.GetFilePath();
CString strtype = "";
int iposs = strfilename.Find("\\Log_") + 5;
int ipose = strfilename.Find("_R.txt");
if (iposs < ipose)
{
strtype = strfilename.Mid(iposs, (ipose-iposs));
slogtype = atoi(strtype.GetBuffer(0));
parseFile(strfilename, slogtype);
}
else
{
return FALSE;
}
}
finder.Close();
BOOL bWorking = finder.FindFile(szBuf);
unsigned short slogtype = 0;
while (bWorking)
{
bWorking = finder.FindNextFile();
CString strfilename = finder.GetFilePath();
CString strtype = "";
int iposs = strfilename.Find("\\Log_") + 5;
int ipose = strfilename.Find("_R.txt");
if (iposs < ipose)
{
strtype = strfilename.Mid(iposs, (ipose-iposs));
slogtype = atoi(strtype.GetBuffer(0));
parseFile(strfilename, slogtype);
}
else
{
return FALSE;
}
}
finder.Close();
- c++查找文件的方法
- linux查找文件的方法
- C语言查找文件-> _finddata_t 的使用
- C程序查找段错误的方法
- Linux查找文件内容的常用命令方法
- Linux查找文件内容的常用命令方法
- Linux查找文件内容的常用命令方法
- 指定路径下查找文件的方法!
- Linux查找文件内容的常用命令方法
- LINUX下查找文件的方法
- LINUX下查找文件的方法
- cmd中查找文件的方法
- linux知道关键字,查找文件的方法
- Linux系统中查找文件的方法
- linux下查找文件的方法
- Linux查找文件内容的常用命令方法
- Linux查找文件内容的常用命令方法。
- Linux查找并复制文件的方法
- readonly和const的区别
- 实现数据驱动Coded UI Tests
- VS2010中ValidateRequest=false失效
- Hadoop生态图谱
- 好的程序员应该熟悉的几门编程语言
- c++查找文件的方法
- AXIS开发Webservice(即时发布与定制发布)
- Niginx下的监控系统Cacti
- 微软测试管理运行Coded UI Test
- make: 1254-055 Dependency line needs colon or double colon operator.
- 慎用CMFCToolBar::CreateEx(转的)
- 分布式Coded UI Tests测试
- C#中dataGridView显示时折叠与展开(隐藏与显示)
- 如何从一个对话框弹出单文档视图