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