cppjieba/cppcommon/file_functs.h
2013-09-10 00:25:35 +08:00

22 lines
471 B
C++

/************************************
* file enc : utf8
* author : wuyanyi09@gmail.com
************************************/
#ifndef CPPCOMMON_FILE_FUNCTS_H
#define CPPCOMMON_FILE_FUNCTS_H
#include <fstream>
#include <iostream>
#include <string>
#include <stdlib.h>
namespace CPPCOMMON
{
using namespace std;
bool checkFileExist(const string& filePath);
bool createDir(const string& dirPath, bool p = true);
bool checkDirExist(const string& dirPath);
}
#endif