17 #ifndef TESSERACT_TRAINING_FILEIO_H_ 18 #define TESSERACT_TRAINING_FILEIO_H_ 33 static FILE*
OpenOrDie(
const std::string& filename,
const std::string& mode);
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);
98 #endif // TESSERACT_TRAINING_FILEIO_H_ static bool DeleteMatchingFiles(const char *pattern)
InputBuffer(FILE *stream)
static bool ReadFileToString(const std::string &filename, std::string *out)
static FILE * OpenOrDie(const std::string &filename, const std::string &mode)
void WriteString(const std::string &str)
static bool Delete(const char *pathname)
static void WriteStringToFileOrDie(const std::string &str, const std::string &filename)
static bool Readable(const std::string &filename)
static std::string JoinPath(const std::string &prefix, const std::string &suffix)
bool Read(std::string *out)
OutputBuffer(FILE *stream)
static FILE * Open(const std::string &filename, const std::string &mode)