📄 fileanddir.h
字号:
// FileAndDir.h: interface for the CFileAndDir class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_FILEANDDIR_H__5FAD35A6_0663_432F_BBE9_0A89E7A4024E__INCLUDED_)
#define AFX_FILEANDDIR_H__5FAD35A6_0663_432F_BBE9_0A89E7A4024E__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
//********************************************************************
// DirDialog.h
//
//
//
// 作 者: 常会玲
//
// 日 期: 2002.07.19
//
// 功能描述: 处理文件目录
//
// 负面影响: 无
//
// 用到的类:
//
// 备 忘:
//
// 更新纪录:
//
// 日 期 姓 名 描述
// =========== ========= ========================================
// 2002.10.21 常会玲 看着结构太乱所以删了很多成员功能,反正
// 暂时也用不上省得添乱,如果要使用,可以
// 使用原先创建的类
// 已知限制: 无
//
//
// 已知错误: 无
//********************************************************************
#include <string>
using namespace std;
class CFileAndDir
{
public:
//将一段文本追加到一个文件的尾部
BOOL AddTextToFile(const CString strFileName, CString strText);
BOOL AddTextToFile(const CString strFileName, LPCTSTR lpcszText, int iLen);
//遍历一个目录下的所有文件,并记录这些文件到strListPath列表中,同时返回文件总数
void RansackDirectoryEx(CString strSoucePath,CStringArray &strListPath,int &iFileSum);
//遍历一个目录下的所有文件,并记录这些文件到strListPath列表中
void RansackDirectory(CString strSoucePath,CStringArray &strListPath);
CFileAndDir();
CString m_strPath;
BOOL IsDirExist(CString strPathName);//判断路径是否存在
virtual ~CFileAndDir();
private:
};
#endif // !defined(AFX_FILEANDDIR_H__5FAD35A6_0663_432F_BBE9_0A89E7A4024E__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -