设为首页 加入收藏

TOP

C++文件操作判断文件是否存在和文件大小
2014-10-23 17:30:03 来源: 作者: 【 】 浏览:65
Tags:文件 操作 判断 是否 存在 大小


  编译和运行环境是在VC++6.0,File.h如下:


  #ifndef _FILE_H


  #define _FILE_H


  #include


  namespace zpp


  {


  class File {


  private:


  std::string fileName;


  public:


  File(const std::string& aFileName);


  ~File();


  bool exist();


  bool isDirectory();


  long getFileSize();


  char getFileDrive();


  std::string getCreateTime();


  std::string getModifiedTime();


  };


  }


】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇C++ofstream和ifstream详细用法 下一篇C++kmp算法模板代码解读

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容: