17 #ifndef TESSERACT_TRAINING_FILEIO_H_ 18 #define TESSERACT_TRAINING_FILEIO_H_ 34 static FILE*
Open(
const std::string& filename,
const std::string& mode);
41 static bool Readable(
const std::string& filename);
48 static std::string
JoinPath(
const std::string& prefix,
const std::string& suffix);
50 static bool Delete(
const char* pathname);
66 bool Read(std::string* out);
87 void WriteString(
const std::string& str);
98 #endif // TESSERACT_TRAINING_FILEIO_H_ static FILE * OpenOrDie(const std::string &filename, const std::string &mode)
static bool Readable(const std::string &filename)
static std::string JoinPath(const std::string &prefix, const std::string &suffix)
static bool Delete(const char *pathname)
static bool ReadFileToString(const std::string &filename, std::string *out)
static FILE * Open(const std::string &filename, const std::string &mode)
static void WriteStringToFileOrDie(const std::string &str, const std::string &filename)
static bool DeleteMatchingFiles(const char *pattern)