file.h 561 B

12345678910111213141516
  1. #ifndef AFUN_FILE_H
  2. #define AFUN_FILE_H
  3. #include "iostream"
  4. #include "aFunToolExport.h"
  5. /* 文件处理工具 */
  6. namespace aFuntool {
  7. AFUN_TOOL_EXPORT int checkFile(const std::string &path);
  8. AFUN_TOOL_EXPORT time_t getFileMTime(const std::string &path);
  9. AFUN_TOOL_EXPORT uintmax_t getFileSize(const std::string &path);
  10. AFUN_TOOL_EXPORT FILE *fileOpen(const std::string &path_, const char *mode_);
  11. AFUN_TOOL_EXPORT FILE *fileOpen(const char *path_, const char *mode_);
  12. AFUN_TOOL_EXPORT int fileClose(FILE *file);
  13. }
  14. #endif //AFUN_FILE_H