17 #ifndef TESSERACT_TRAINING_FILEIO_H_ 18 #define TESSERACT_TRAINING_FILEIO_H_ 24 #ifdef USE_STD_NAMESPACE 50 static string JoinPath(
const string& prefix,
const string& suffix);
52 static bool Delete(
const char* pathname);
68 bool Read(
string* out);
100 #endif // TESSERACT_TRAINING_FILEIO_H_ static bool DeleteMatchingFiles(const char *pattern)
OutputBuffer(FILE *stream)
static bool Readable(const string &filename)
static FILE * OpenOrDie(const string &filename, const string &mode)
InputBuffer(FILE *stream)
static FILE * Open(const string &filename, const string &mode)
static bool ReadFileToString(const string &filename, string *out)
void WriteString(const string &str)
static string JoinPath(const string &prefix, const string &suffix)
static bool Delete(const char *pathname)
static void WriteStringToFileOrDie(const string &str, const string &filename)