tesseract
5.0.0-alpha-619-ge9db
|
Go to the documentation of this file.
16 #ifndef TESSERACT_TRAINING_FILEIO_H_
17 #define TESSERACT_TRAINING_FILEIO_H_
38 lines_str.
split(
'\n', lines);
64 static bool Delete(
const char* pathname);
111 #endif // TESSERACT_TRAINING_FILEIO_H_
void WriteString(const std::string &str)
static bool Delete(const char *pathname)
InputBuffer(FILE *stream)
static bool Readable(const std::string &filename)
static FILE * Open(const std::string &filename, const std::string &mode)
bool LoadDataFromFile(const char *filename, GenericVector< char > *data)
static std::string JoinPath(const std::string &prefix, const std::string &suffix)
static FILE * OpenOrDie(const std::string &filename, const std::string &mode)
bool LoadFileLinesToStrings(const char *filename, GenericVector< STRING > *lines)
static void WriteStringToFileOrDie(const std::string &str, const std::string &filename)
static bool ReadFileToString(const std::string &filename, std::string *out)
static bool DeleteMatchingFiles(const char *pattern)
OutputBuffer(FILE *stream)
bool Read(std::string *out)
void split(char c, GenericVector< STRING > *splited)