MCPcopy Create free account
hub / github.com/creatale/node-dv / open_file

Function open_file

deps/tesseract/cutil/cutil.cpp:82–89  ·  view source on GitHub ↗

* open_file * * Open a file for reading or writing. If the file name parameter is * NULL use stdin (or stdout) for the file. If the file can not be * opened then call the error routine. **********************************************************************/

Source from the content-addressed store, hash-verified

80 * opened then call the error routine.
81 **********************************************************************/
82FILE *open_file(const char *filename, const char *mode) {
83 FILE *thisfile = NULL;
84 if ((thisfile = fopen (filename, mode)) == NULL) {
85 tprintf ("Could not open file, %s\n", filename);
86 exit (1);
87 }
88 return (thisfile);
89}
90
91/// Check whether the file exists
92bool exists_file(const char *filename) {

Callers 4

init_recog_trainingMethod · 0.85
add_document_wordMethod · 0.85
check_for_wordsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected