MCPcopy Create free account
hub / github.com/antirez/llama.cpp-deepseek-v4-flash / read_file

Function read_file

tools/parser/template-analysis.cpp:76–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74};
75
76static std::string read_file(const std::string & path) {
77 std::ifstream fin(path, std::ios::binary);
78 if (!fin.is_open()) {
79 throw std::runtime_error("Could not open file: " + path);
80 }
81 std::ostringstream buf;
82 buf << fin.rdbuf();
83 return buf.str();
84}
85
86static void print_usage(const char * program_name) {
87 LOG_ERR("Usage: %s [options]\n", program_name);

Callers 1

analyze_templateFunction · 0.70

Calls 1

strMethod · 0.45

Tested by

no test coverage detected